diff --git a/Tests/Request/ParamConverter/DoctrineParamConverterTest.php b/Tests/Request/ParamConverter/DoctrineParamConverterTest.php index a80d6036..ae48445a 100644 --- a/Tests/Request/ParamConverter/DoctrineParamConverterTest.php +++ b/Tests/Request/ParamConverter/DoctrineParamConverterTest.php @@ -19,6 +19,10 @@ class DoctrineParamConverterTest extends \PHPUnit_Framework_TestCase public function setUp() { + if (!class_exists('Doctrine\Common\Persistence\ManagerRegistry')) { + $this->markTestSkipped('ManagerRegistry cannot be autoloadet'); + } + $this->manager = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry'); $this->converter = new DoctrineParamConverter($this->manager); } @@ -80,4 +84,4 @@ public function testSupports() $this->assertTrue($ret, "Should be supported"); } -} \ No newline at end of file +}