Skip to content

Instantly share code, notes, and snippets.

@tmotyl
Last active August 29, 2015 13:56
Show Gist options
  • Save tmotyl/9326858 to your computer and use it in GitHub Desktop.
Save tmotyl/9326858 to your computer and use it in GitHub Desktop.
running vfsStream unit tests on hhvm
vagrant@vagrant-ubuntu-saucy-64:~/www/vfsStream2$ hhvm --version
HipHop VM 2.5.0-dev+2014.03.02 (rel)
Compiler: heads/master-0-g1bec21ab61a63c2566f74aa2d33685c41b094877
Repo schema: 000646af7d947de73424840e621fc2e8e1a64505
Segmentation fault (core dumped)
vagrant@vagrant-ubuntu-saucy-64:~/www/vfsStream2$
vagrant@vagrant-ubuntu-saucy-64:~/www/vfsStream2$ hhvm phpunit.phar -c phpunit.xml.dist
PHPUnit 3.7.32 by Sebastian Bergmann.
The Xdebug extension is not loaded. No code coverage will be generated.
......FF..FF................................................... 63 / 328 ( 19%)
.........F.................SS.................................. 126 / 328 ( 38%)
.......................EEE...E.....E.....F.EEE...EE............ 189 / 328 ( 57%)
.E...........E...........S.......SS...S......F.F..FFF.F.F..FF.. 252 / 328 ( 76%)
....SSSSS....F.....EEE....FF.F.F..F..............SSFFFFF......F 315 / 328 ( 96%)
.S...........
Time: 7.54 seconds, Memory: 19.20Mb
There were 15 errors:
1) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::mkdirNoNewRoot
"org\bovigo\vfs\vfsStreamWrapper::mkdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:27
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
2) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::mkdirNoNewRootRecursively
"org\bovigo\vfs\vfsStreamWrapper::mkdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:39
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
3) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::mkdirNonRecursively
"org\bovigo\vfs\vfsStreamWrapper::mkdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:52
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
4) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::mkdirOnFileReturnsFalse
"org\bovigo\vfs\vfsStreamWrapper::mkdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:109
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
5) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::mkdirDirCanNotCreateNewDirInNonWritingDirectory
"org\bovigo\vfs\vfsStreamWrapper::mkdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:198
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
6) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::rmdirCanNotRemoveFiles
"org\bovigo\vfs\vfsStreamWrapper::rmdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:300
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
7) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::rmdirCanNotRemoveNonExistingDirectory
"org\bovigo\vfs\vfsStreamWrapper::rmdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:311
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
8) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::rmdirCanNotRemoveNonEmptyDirectory
"org\bovigo\vfs\vfsStreamWrapper::rmdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:321
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
9) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::rmdirDirCanNotRemoveDirFromNonWritingDirectory
"org\bovigo\vfs\vfsStreamWrapper::rmdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:372
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
10) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::issue17
"org\bovigo\vfs\vfsStreamWrapper::mkdir" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:387
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
11) org\bovigo\vfs\vfsStreamWrapperFileTestCase::is_file
No such file or directory: vfs://foo/another
/home/vagrant/www/vfsStream2/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php:961
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php:152
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
12) org\bovigo\vfs\vfsStreamWrapperFileTestCase::canNotRemoveFileFromDirectoryWithoutWritePermissions
"org\bovigo\vfs\vfsStreamWrapper::unlink" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php:314
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
13) org\bovigo\vfs\vfsStreamWrapperTestCase::unlinkRemovesFilesOnly
"org\bovigo\vfs\vfsStreamWrapper::unlink" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:98
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
14) org\bovigo\vfs\vfsStreamWrapperTestCase::unlinkReturnsFalseWhenFileDoesNotExist
"org\bovigo\vfs\vfsStreamWrapper::unlink" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:110
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
15) org\bovigo\vfs\vfsStreamWrapperTestCase::unlinkReturnsFalseWhenFileDoesNotExistAndFileWithSameNameExistsInRoot
"org\bovigo\vfs\vfsStreamWrapper::unlink" call failed
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:120
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
--
There were 27 failures:
1) org\bovigo\vfs\DirectoryIterationTestCase::directoryIteration_Bug_4 with data set #0 (Closure$org\bovigo\vfs\DirectoryIterationTestCase::provideSwitchWithExpectations, array('bar', 'baz2'))
Failed asserting that 1 matches expected 2.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:187
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
2) org\bovigo\vfs\DirectoryIterationTestCase::directoryIteration_Bug_4 with data set #1 (Closure$org\bovigo\vfs\DirectoryIterationTestCase::provideSwitchWithExpectations#2, array('.', '..', 'bar', 'baz2'))
Failed asserting that 1 matches expected 2.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:187
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
3) org\bovigo\vfs\DirectoryIterationTestCase::recursiveDirectoryIterationWithDotsEnabled
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 0 => 'vfs://root/.'
- 1 => 'vfs://root/..'
- 2 => 'vfs://root/Core/.'
- 3 => 'vfs://root/Core/..'
- 4 => 'vfs://root/Core/AbstractFactory/.'
- 5 => 'vfs://root/Core/AbstractFactory/..'
- 6 => 'vfs://root/Core/AbstractFacto...st.php'
- 7 => 'vfs://root/Core/AbstractFacto...er.php'
- 8 => 'vfs://root/Core/AbstractFacto...id.csv'
- 9 => 'vfs://root/Core/AbstractFactory'
- 10 => 'vfs://root/Core/AnEmptyFolder/.'
- 11 => 'vfs://root/Core/AnEmptyFolder/..'
- 12 => 'vfs://root/Core/AnEmptyFolder'
- 13 => 'vfs://root/Core/badlocation.php'
- 14 => 'vfs://root/Core'
+ 0 => SplFileInfo Object (...)
+ 1 => SplFileInfo Object (...)
+ 2 => SplFileInfo Object (...)
)
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:275
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
4) org\bovigo\vfs\DirectoryIterationTestCase::recursiveDirectoryIterationWithDotsDisabled
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
Array (
- 0 => 'vfs://root/Core/AbstractFacto...st.php'
- 1 => 'vfs://root/Core/AbstractFacto...er.php'
- 2 => 'vfs://root/Core/AbstractFacto...id.csv'
- 3 => 'vfs://root/Core/AbstractFactory'
- 4 => 'vfs://root/Core/AnEmptyFolder'
- 5 => 'vfs://root/Core/badlocation.php'
- 6 => 'vfs://root/Core'
+ 0 => SplFileInfo Object (...)
)
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/DirectoryIterationTestCase.php:316
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
5) org\bovigo\vfs\vfsStreamExLockTestCase::filePutContentsLockShouldReportError
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'file_put_contents(): Exclusive locks may only be set for regular files'
+'"org\bovigo\vfs\vfsStreamWrapper::unlink" call failed'
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamExLockTestCase.php:40
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
6) org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::is_dir
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php:272
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
7) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::canRemoveLock
Failed asserting that true is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:121
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
8) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::canRemoveSharedLockWithoutRemovingSharedLockOnOtherFileHandler
Failed asserting that true is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:159
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
9) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::canRemoveLockWithNonBlockingFlockCall
Failed asserting that true is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:212
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
10) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::canNotAquireExclusiveLockIfAlreadyExclusivelyLockedOnOtherFileHandler
Failed asserting that true is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:234
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
11) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::canAquireExclusiveLockIfAlreadySelfExclusivelyLocked
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:249
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
12) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::canAquireExclusiveLockIfAlreadySelfSharedLocked
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:285
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
13) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::canAquireSharedLockIfAlreadySelfExclusivelyLocked
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:321
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
14) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::removesExclusiveLockOnStreamClose
Failed asserting that true is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:379
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
15) org\bovigo\vfs\vfsStreamWrapperFlockTestCase::removesSharedLockOnStreamClose
Failed asserting that true is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperFlockTestCase.php:397
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
16) org\bovigo\vfs\vfsStreamWrapperSelectStreamTestCase::selectStream
Failed asserting that exception of type "\PHPUnit_Framework_Error" is thrown.
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
17) org\bovigo\vfs\vfsStreamWrapperTestCase::is_executable
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:205
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
18) org\bovigo\vfs\vfsStreamWrapperTestCase::directoriesAndNonExistingFilesAreNeverExecutable
Failed asserting that true is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:216
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
19) org\bovigo\vfs\vfsStreamWrapperTestCase::chmodModifiesPermissions
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:268
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
20) org\bovigo\vfs\vfsStreamWrapperTestCase::chownChangesUser
Failed asserting that 1000 matches expected 1.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:312
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
21) org\bovigo\vfs\vfsStreamWrapperTestCase::chgrp
Failed asserting that 1000 matches expected 1.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:367
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
22) org\bovigo\vfs\vfsStreamWrapperTestCase::touchCreatesNonExistingFile
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:675
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
23) org\bovigo\vfs\vfsStreamWrapperTestCase::touchChangesAccessAndModificationTimeForFile
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:689
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
24) org\bovigo\vfs\vfsStreamWrapperTestCase::touchDoesNotChangeTimesWhenNoTimesGiven
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:704
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
25) org\bovigo\vfs\vfsStreamWrapperTestCase::touchWithModifiedTimeChangesAccessAndModifiedTime
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:719
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
26) org\bovigo\vfs\vfsStreamWrapperTestCase::touchChangesAccessAndModificationTimeForDirectory
Failed asserting that false is true.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperTestCase.php:734
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
27) org\bovigo\vfs\vfsStreamWrapperWithoutRootTestCase::canNotOpen
Failed asserting that null is false.
/home/vagrant/www/vfsStream2/src/test/php/org/bovigo/vfs/vfsStreamWrapperWithoutRootTestCase.php:51
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:176
phar://phpunit-3.7.32.phar/phpunit/TextUI/Command.php:129
FAILURES!
Tests: 328, Assertions: 1135, Failures: 27, Errors: 15, Skipped: 14.
Core dumped: Segmentation fault
Segmentation fault (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment