1 | <?php |
||
18 | class WebTestCase extends BaseWebTestCase |
||
19 | { |
||
20 | public static function assertRedirect($response, $location) |
||
21 | { |
||
22 | self::assertTrue($response->isRedirect(), 'Response is not a redirect, got status code: '.$response->getStatusCode()); |
||
23 | self::assertEquals('http://localhost'.$location, $response->headers->get('Location')); |
||
24 | } |
||
25 | |||
26 | protected function deleteTmpDir($testCase) |
||
27 | { |
||
28 | if (!file_exists($dir = $this->getTmpDirPath($testCase))) { |
||
29 | return; |
||
30 | } |
||
31 | |||
32 | $fs = new Filesystem(); |
||
33 | $fs->remove($dir); |
||
34 | } |
||
35 | |||
36 | protected function getTmpDirPath($testCase) |
||
40 | |||
41 | protected static function getKernelClass() |
||
42 | { |
||
47 | |||
48 | protected static function createKernel(array $options = []) |
||
63 | } |
||
64 |