Skip to content

Commit

Permalink
mark test as skipped if doctrine managerregisty is not availible
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikbjorn committed Nov 24, 2011
1 parent 8c73373 commit 2f92111
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Tests/Request/ParamConverter/DoctrineParamConverterTest.php
Expand Up @@ -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);
}
Expand Down Expand Up @@ -80,4 +84,4 @@ public function testSupports()

$this->assertTrue($ret, "Should be supported");
}
}
}

0 comments on commit 2f92111

Please sign in to comment.