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

This commit is contained in:
Joseph Bielawski 2011-05-24 14:16:10 -07:00
parent 8d7def4fae
commit 46e58206a3

View File

@ -170,6 +170,10 @@ abstract class FrameworkExtensionTest extends TestCase
public function testAnnotations() public function testAnnotations()
{ {
if (!class_exists('Doctrine\\Common\\Version')) {
$this->markTestSkipped('Doctrine is not available.');
}
$container = $this->createContainerFromFile('full'); $container = $this->createContainerFromFile('full');
$this->assertEquals($container->getParameter('kernel.cache_dir').'/annotations', $container->getDefinition('annotations.file_cache_reader')->getArgument(1)); $this->assertEquals($container->getParameter('kernel.cache_dir').'/annotations', $container->getDefinition('annotations.file_cache_reader')->getArgument(1));