|
@@ -22,6 +22,15 @@ class WebTestCase extends BaseWebTestCase
|
|
self::assertEquals('http://localhost'.$location, $response->headers->get('Location'));
|
|
self::assertEquals('http://localhost'.$location, $response->headers->get('Location'));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ protected function setUp()
|
|
|
|
+ {
|
|
|
|
+ if (!class_exists('Twig_Environment')) {
|
|
|
|
+ $this->markTestSkipped('Twig is not available.');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ parent::setUp();
|
|
|
|
+ }
|
|
|
|
+
|
|
protected function deleteTmpDir($testCase)
|
|
protected function deleteTmpDir($testCase)
|
|
{
|
|
{
|
|
if (!file_exists($dir = sys_get_temp_dir().'/'.$testCase)) {
|
|
if (!file_exists($dir = sys_get_temp_dir().'/'.$testCase)) {
|