Forráskód Böngészése

[Tests] Skip test if Doctrine Common is not available.

Joseph Bielawski 14 éve
szülő
commit
e29e12473c

+ 4 - 0
src/Symfony/Bundle/DoctrineBundle/Tests/Mapping/Driver/AbstractDriverTest.php

@@ -55,6 +55,10 @@ abstract class AbstractDriverTest extends \PHPUnit_Framework_TestCase
 
     protected function setUp()
     {
+        if (!class_exists('Doctrine\\Common\\Version')) {
+            $this->markTestSkipped('Doctrine is not available.');
+        }
+
         $this->dir = sys_get_temp_dir().'/abstract_driver_test';
         @mkdir($this->dir, 0777, true);
     }