Skip Doctrine tests if libraries are not available
Conflicts: Tests/Doctrine/RepositoryManagerTest.php
This commit is contained in:
parent
d6dbefe969
commit
7f05e8311a
|
@ -11,6 +11,13 @@ class Document{}
|
|||
*/
|
||||
class ListenerTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
if (!class_exists('Doctrine\ODM\MongoDB\DocumentManager')) {
|
||||
$this->markTestSkipped('Doctrine MongoDB ODM is not available.');
|
||||
}
|
||||
}
|
||||
|
||||
public function testObjectInsertedOnPersist()
|
||||
{
|
||||
$persisterMock = $this->getMockBuilder('FOQ\ElasticaBundle\Persister\ObjectPersisterInterface')
|
||||
|
|
|
@ -11,6 +11,13 @@ class Entity{}
|
|||
*/
|
||||
class ListenerTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
if (!class_exists('Doctrine\ORM\EntityManager')) {
|
||||
$this->markTestSkipped('Doctrine ORM is not available.');
|
||||
}
|
||||
}
|
||||
|
||||
public function testObjectInsertedOnPersist()
|
||||
{
|
||||
$persisterMock = $this->getMockBuilder('FOQ\ElasticaBundle\Persister\ObjectPersisterInterface')
|
||||
|
|
Loading…
Reference in a new issue