Skip to content

Commit

Permalink
Merge pull request #9 from kohana/hhvm-skip-vfsstream
Browse files Browse the repository at this point in the history
Skip only vfsStream failures on HHVM
  • Loading branch information
lenton committed Feb 12, 2015
2 parents e02a763 + 11b2d16 commit f6ccd6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ php:
- 5.6
- hhvm

matrix:
allow_failures:
- php: hhvm

install:
- composer install --prefer-dist

Expand Down
8 changes: 8 additions & 0 deletions spec/Filesystem/CascadingFilesystemSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@
use Prophecy\Argument;
use Doctrine\Common\Cache\ArrayCache;
use org\bovigo\vfs\vfsStream;
use PhpSpec\Exception\Example\SkippingException;

class CascadingFilesystemSpec extends ObjectBehavior
{
function let(ArrayCache $cache)
{
if (defined('HHVM_VERSION')) {
throw new SkippingException(
'Skipped due to incomplete vfsStream support on HHVM - https://github.com/facebook/hhvm/issues/1971'
);
}

vfsStream::setup('root', null, [
'dir1' => [
'src' => [
Expand Down Expand Up @@ -149,4 +156,5 @@ function it_loads_a_php_file()
{
$this->load(vfsStream::url('root/dir4/src/House.php'));
}

}

0 comments on commit f6ccd6a

Please sign in to comment.