Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mark test as skipped if doctrine managerregisty is not availible

  • Loading branch information...
commit 2f9211112d9e6219de813cac5e23956e07ed1a6c 1 parent 8c73373
@henrikbjorn henrikbjorn authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 Tests/Request/ParamConverter/DoctrineParamConverterTest.php
View
6 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");
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.