Skip to content

Commit

Permalink
Re-add support for PHPUnit 6.5.14 and PHP ^7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gogowitsch committed Aug 29, 2024
1 parent 71e5f22 commit f9b08cb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/methods/ConstructTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,13 @@ public function testCodeExamples() {
$ob_get_clean = ob_get_clean();
$verb = strtok($script_file, '_.');

if (!in_array($verb, ['download', 'save'], true)) {
$this->assertStringContainsString('<td>', $ob_get_clean);
if (!in_array($verb, ['download', 'save'], TRUE)) {
if (method_exists($this, 'assertStringContainsString')) {
$this->assertStringContainsString('<td>', $ob_get_clean);
}
else {
$this->assertContains('<td>', $ob_get_clean);
}
}
}
chdir('..');
Expand Down

0 comments on commit f9b08cb

Please sign in to comment.