[Tests] Skip test if Doctrine Common is not available.
This commit is contained in:
parent
8d7def4fae
commit
46e58206a3
@ -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));
|
||||||
|
Reference in New Issue
Block a user