diff --git a/tests/Component/Basket/BasketManagerTest.php b/tests/Component/Basket/BasketManagerTest.php index 25499d7c4..d0d1ae369 100644 --- a/tests/Component/Basket/BasketManagerTest.php +++ b/tests/Component/Basket/BasketManagerTest.php @@ -85,6 +85,10 @@ public function testDelete() protected function getBasketManager($qbCallback) { + if (version_compare(\PHPUnit_Runner_Version::id(), '5.0.0', '>=')) { + $this->markTestSkipped('Not compatible with PHPUnit 5.'); + } + $em = EntityManagerMockFactory::create($this, $qbCallback, array( 'id', 'locale', diff --git a/tests/CustomerBundle/Entity/AddressManagerTest.php b/tests/CustomerBundle/Entity/AddressManagerTest.php index 07ae65a27..3021768ca 100644 --- a/tests/CustomerBundle/Entity/AddressManagerTest.php +++ b/tests/CustomerBundle/Entity/AddressManagerTest.php @@ -80,6 +80,10 @@ public function testDelete() protected function getAddressManager($qbCallback) { + if (version_compare(\PHPUnit_Runner_Version::id(), '5.0.0', '>=')) { + $this->markTestSkipped('Not compatible with PHPUnit 5.'); + } + $em = EntityManagerMockFactory::create($this, $qbCallback, array( 'name', 'firstname', diff --git a/tests/CustomerBundle/Entity/CustomerManagerTest.php b/tests/CustomerBundle/Entity/CustomerManagerTest.php index cc6f689aa..6dcdb4e54 100644 --- a/tests/CustomerBundle/Entity/CustomerManagerTest.php +++ b/tests/CustomerBundle/Entity/CustomerManagerTest.php @@ -21,6 +21,10 @@ class CustomerManagerTest extends \PHPUnit_Framework_TestCase { protected function getCustomerManager($qbCallback) { + if (version_compare(\PHPUnit_Runner_Version::id(), '5.0.0', '>=')) { + $this->markTestSkipped('Not compatible with PHPUnit 5.'); + } + $em = EntityManagerMockFactory::create($this, $qbCallback, array( 'firstname', 'lastname', diff --git a/tests/InvoiceBundle/Entity/InvoiceManagerTest.php b/tests/InvoiceBundle/Entity/InvoiceManagerTest.php index 648daa388..343743bde 100644 --- a/tests/InvoiceBundle/Entity/InvoiceManagerTest.php +++ b/tests/InvoiceBundle/Entity/InvoiceManagerTest.php @@ -25,6 +25,10 @@ class InvoiceManagerTest extends \PHPUnit_Framework_TestCase { protected function getInvoiceManager($qbCallback) { + if (version_compare(\PHPUnit_Runner_Version::id(), '5.0.0', '>=')) { + $this->markTestSkipped('Not compatible with PHPUnit 5.'); + } + $em = EntityManagerMockFactory::create($this, $qbCallback, array( 'reference', 'status', diff --git a/tests/OrderBundle/Entity/OrderManagerTest.php b/tests/OrderBundle/Entity/OrderManagerTest.php index 95d4575e7..06b8a8057 100644 --- a/tests/OrderBundle/Entity/OrderManagerTest.php +++ b/tests/OrderBundle/Entity/OrderManagerTest.php @@ -85,6 +85,10 @@ public function testDelete() protected function getOrderManager($qbCallback) { + if (version_compare(\PHPUnit_Runner_Version::id(), '5.0.0', '>=')) { + $this->markTestSkipped('Not compatible with PHPUnit 5.'); + } + $em = EntityManagerMockFactory::create($this, $qbCallback, array( 'reference', 'status', diff --git a/tests/ProductBundle/Entity/ProductManagerTest.php b/tests/ProductBundle/Entity/ProductManagerTest.php index eeea86bfc..af56ad76a 100644 --- a/tests/ProductBundle/Entity/ProductManagerTest.php +++ b/tests/ProductBundle/Entity/ProductManagerTest.php @@ -21,6 +21,10 @@ class ProductManagerTest extends \PHPUnit_Framework_TestCase { protected function getProductManager($qbCallback) { + if (version_compare(\PHPUnit_Runner_Version::id(), '5.0.0', '>=')) { + $this->markTestSkipped('Not compatible with PHPUnit 5.'); + } + $em = EntityManagerMockFactory::create($this, $qbCallback, array( 'sku', 'slug',