Skip to content
Snippets Groups Projects
Commit a414e568 authored by Joseph Bielawski's avatar Joseph Bielawski
Browse files

Fix for failing tests #1199 when Twig vendor doesn't exists.

parent f84ee37a
Branches
Tags
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment