mirror of
https://github.com/DirectoryLister/DirectoryLister.git
synced 2025-08-29 08:40:42 +02:00
Relax phpunit version requirements and don't use phpunit v9 specific methods
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
"friendsofphp/php-cs-fixer": "^2.3",
|
||||
"johnkary/phpunit-speedtrap": "^3.2",
|
||||
"phlak/coding-standards": "^1.1",
|
||||
"phpunit/phpunit": "^9.1",
|
||||
"phpunit/phpunit": "^8.0 || ^9.0",
|
||||
"psy/psysh": "^0.10",
|
||||
"symfony/var-dumper": "^5.0",
|
||||
"vimeo/psalm": "^3.6"
|
||||
|
@@ -30,7 +30,7 @@ class SearchControllerTest extends TestCase
|
||||
|
||||
$this->assertInstanceOf(ResponseInterface::class, $response);
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertDoesNotMatchRegularExpression('/No results found/', (string) $response->getBody());
|
||||
$this->assertStringNotContainsString('No results found', (string) $response->getBody());
|
||||
}
|
||||
|
||||
public function test_it_returns_no_results_found_when_there_are_no_results(): void
|
||||
@@ -49,7 +49,7 @@ class SearchControllerTest extends TestCase
|
||||
|
||||
$this->assertInstanceOf(ResponseInterface::class, $response);
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertMatchesRegularExpression('/No results found/', (string) $response->getBody());
|
||||
$this->assertStringContainsString('No results found', (string) $response->getBody());
|
||||
}
|
||||
|
||||
public function test_it_returns_no_results_found_for_a_blank_search(): void
|
||||
@@ -68,6 +68,6 @@ class SearchControllerTest extends TestCase
|
||||
|
||||
$this->assertInstanceOf(ResponseInterface::class, $response);
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertMatchesRegularExpression('/No results found/', (string) $response->getBody());
|
||||
$this->assertStringContainsString('No results found', (string) $response->getBody());
|
||||
}
|
||||
}
|
||||
|
@@ -33,6 +33,6 @@ class TemporaryFileTest extends TestCase
|
||||
|
||||
unset($tempFile);
|
||||
|
||||
$this->assertFileDoesNotExist($filePath);
|
||||
$this->assertFalse(is_file($filePath));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user