Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Skip invalid tests
Browse files Browse the repository at this point in the history
  • Loading branch information
soullivaneuh committed Jun 24, 2016
1 parent ccb19aa commit f25aa59
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Component/Basket/BasketManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions tests/CustomerBundle/Entity/AddressManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions tests/CustomerBundle/Entity/CustomerManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions tests/InvoiceBundle/Entity/InvoiceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions tests/OrderBundle/Entity/OrderManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
4 changes: 4 additions & 0 deletions tests/ProductBundle/Entity/ProductManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit f25aa59

Please sign in to comment.