Skip to content

Commit

Permalink
Skip specific tests on HHVM instead of allowing to fail, see #6
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed Dec 21, 2015
1 parent c7fcd53 commit 7f7dd42
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ branches:
- /^analysis-.*$/

matrix:
allow_failures:
- php: hhvm
fast_finish: true
include:
- php: 5.4
Expand Down
5 changes: 5 additions & 0 deletions spec/Encoding/ChunkStreamSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
namespace spec\Http\Message\Encoding;

use Psr\Http\Message\StreamInterface;
use PhpSpec\Exception\Example\SkippingException;
use PhpSpec\ObjectBehavior;

class ChunkStreamSpec extends ObjectBehavior
{
function let(StreamInterface $stream)
{
if (defined('HHVM_VERSION')) {
throw new SkippingException('Skipping test as there is no dechunk filter on hhvm');
}

$this->beConstructedWith($stream);
}

Expand Down
5 changes: 5 additions & 0 deletions spec/Encoding/CompressStreamSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
namespace spec\Http\Message\Encoding;

use Psr\Http\Message\StreamInterface;
use PhpSpec\Exception\Example\SkippingException;
use PhpSpec\ObjectBehavior;

class CompressStreamSpec extends ObjectBehavior
{
function let(StreamInterface $stream)
{
if (defined('HHVM_VERSION')) {
throw new SkippingException('Skipping test as zlib is not working on hhvm');
}

$this->beConstructedWith($stream);
}

Expand Down
5 changes: 5 additions & 0 deletions spec/Encoding/DechunkStreamSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
namespace spec\Http\Message\Encoding;

use Psr\Http\Message\StreamInterface;
use PhpSpec\Exception\Example\SkippingException;
use PhpSpec\ObjectBehavior;

class DechunkStreamSpec extends ObjectBehavior
{
function let(StreamInterface $stream)
{
if (defined('HHVM_VERSION')) {
throw new SkippingException('Skipping test as there is no dechunk filter on hhvm');
}

$this->beConstructedWith($stream);
}

Expand Down
5 changes: 5 additions & 0 deletions spec/Encoding/DecompressStreamSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
namespace spec\Http\Message\Encoding;

use Psr\Http\Message\StreamInterface;
use PhpSpec\Exception\Example\SkippingException;
use PhpSpec\ObjectBehavior;

class DecompressStreamSpec extends ObjectBehavior
{
function let(StreamInterface $stream)
{
if (defined('HHVM_VERSION')) {
throw new SkippingException('Skipping test as zlib is not working on hhvm');
}

$this->beConstructedWith($stream);
}

Expand Down
5 changes: 5 additions & 0 deletions spec/Encoding/GzipDecodeStreamSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
namespace spec\Http\Message\Encoding;

use Psr\Http\Message\StreamInterface;
use PhpSpec\Exception\Example\SkippingException;
use PhpSpec\ObjectBehavior;

class GzipDecodeStreamSpec extends ObjectBehavior
{
function let(StreamInterface $stream)
{
if (defined('HHVM_VERSION')) {
throw new SkippingException('Skipping test as zlib is not working on hhvm');
}

$this->beConstructedWith($stream);
}

Expand Down
5 changes: 5 additions & 0 deletions spec/Encoding/GzipEncodeStreamSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
namespace spec\Http\Message\Encoding;

use Psr\Http\Message\StreamInterface;
use PhpSpec\Exception\Example\SkippingException;
use PhpSpec\ObjectBehavior;

class GzipEncodeStreamSpec extends ObjectBehavior
{
function let(StreamInterface $stream)
{
if (defined('HHVM_VERSION')) {
throw new SkippingException('Skipping test as zlib is not working on hhvm');
}

$this->beConstructedWith($stream);
}

Expand Down

0 comments on commit 7f7dd42

Please sign in to comment.