From a414e568810e80685e57c31eb4df29320b5e83fc Mon Sep 17 00:00:00 2001 From: Joseph Bielawski Date: Fri, 3 Jun 2011 01:42:19 -0700 Subject: [PATCH] Fix for failing tests #1199 when Twig vendor doesn't exists. --- .../SecurityBundle/Tests/Functional/WebTestCase.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php index 3b151b5113..9a74032430 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/WebTestCase.php @@ -22,6 +22,15 @@ class WebTestCase extends BaseWebTestCase 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) { if (!file_exists($dir = sys_get_temp_dir().'/'.$testCase)) {