Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed May 4, 2017
1 parent 5d46457 commit ea0ea7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Tests/Async/CacheResolvedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class CacheResolvedTest extends \PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass()
{
if (false == interface_exists('Enqueue\Psr\PsrProcessor')) {
throw new \PHPUnit_Framework_SkippedTestError('The enqueue bundle is not installed. Skip optional tests');
if (false == getenv('WITH_ENQUEUE')) {
self::markTestSkipped('The tests are run without enqueue integration. Skip them');
}
}

Expand Down
4 changes: 2 additions & 2 deletions Tests/Async/ResolveCacheProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class ResolveCacheProcessorTest extends \PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass()
{
if (false == interface_exists('Enqueue\Psr\PsrProcessor')) {
throw new \PHPUnit_Framework_SkippedTestError('The enqueue bundle is not installed. Skip optional tests');
if (false == getenv('WITH_ENQUEUE')) {
self::markTestSkipped('The tests are run without enqueue integration. Skip them');
}
}

Expand Down
4 changes: 2 additions & 2 deletions Tests/Async/ResolveCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class ResolveCacheTest extends \PHPUnit_Framework_TestCase
{
public static function setUpBeforeClass()
{
if (false == interface_exists('Enqueue\Psr\PsrProcessor')) {
throw new \PHPUnit_Framework_SkippedTestError('The enqueue bundle is not installed. Skip optional tests');
if (false == getenv('WITH_ENQUEUE')) {
self::markTestSkipped('The tests are run without enqueue integration. Skip them');
}
}

Expand Down

0 comments on commit ea0ea7e

Please sign in to comment.