Skip to content

Instantly share code, notes, and snippets.

@dazz
Last active December 28, 2015 06:48
Show Gist options
  • Save dazz/7459286 to your computer and use it in GitHub Desktop.
Save dazz/7459286 to your computer and use it in GitHub Desktop.
Running phpunit on composer with hhvm
(~/code) % hhvm --version HipHop VM v2.2.0 (rel)
Compiler: heads/HPHP-2.2-0-g633422a8386feb6cce6aa533a12d24d5c32b526c
Repo schema: 63eda7c0b41603cdee7081a57d6f45d691ad206e
(~/code) % hhvm --repo-schema 63eda7c0b41603cdee7081a57d6f45d691ad206e
(~/code/composer) % git clone https://github.com/composer/composer.git Cloning into 'composer'...
remote: Counting objects: 27010, done.
remote: Compressing objects: 100% (15944/15944), done.
remote: Total 27010 (delta 13980), reused 22055 (delta 9153)
Receiving objects: 100% (27010/27010), 5.96 MiB | 674 KiB/s, done.
Resolving deltas: 100% (13980/13980), done.
(~/code/composer/composer) % wget http://getcomposer.org/composer.phar --2013-11-14 00:42:08-- http://getcomposer.org/composer.phar
Resolving getcomposer.org (getcomposer.org)... 87.98.253.108
Connecting to getcomposer.org (getcomposer.org)|87.98.253.108|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 934492 (913K) [application/octet-stream]
Saving to: `composer.phar'
100%[==========================================================================================================================================>] 934,492 689K/s in 1.3s
2013-11-14 00:42:09 (689 KB/s) - `composer.phar' saved [934492/934492]
(~/code/composer/composer) % hhvm ./composer.phar install --dev Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
- Installing justinrainbow/json-schema (1.1.0)
Downloading: 100%
- Installing seld/jsonlint (1.1.1)
Downloading: 100%
- Installing symfony/console (v2.3.6)
Downloading: 100%
- Installing symfony/finder (v2.3.6)
Downloading: 100%
- Installing symfony/process (dev-master 27b0fc6)
Cloning 27b0fc645a557b2fc7bc7735cfb05505de9351be
- Installing phpunit/php-token-stream (1.2.1)
Downloading: 100%
- Installing symfony/yaml (v2.3.6)
Downloading: 100%
- Installing phpunit/php-text-template (1.1.4)
Downloading: 100%
- Installing phpunit/phpunit-mock-objects (1.2.3)
Downloading: 100%
- Installing phpunit/php-timer (1.0.5)
Downloading: 100%
- Installing phpunit/php-file-iterator (1.3.4)
Downloading: 100%
- Installing phpunit/php-code-coverage (1.2.13)
Downloading: 100%
- Installing phpunit/phpunit (3.7.27)
Downloading: 100%
symfony/console suggests installing symfony/event-dispatcher ()
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.0.5)
phpunit/phpunit suggests installing phpunit/php-invoker (>=1.1.0,<1.2.0)
Generating autoload files
(~/code/composer/composer) % hhvm ./vendor/bin/phpunit PHPUnit 3.7.27 by Sebastian Bergmann.
Configuration read from /home/vagrant/code/composer/composer/phpunit.xml.dist
............................................................. 61 / 1052 ( 5%)
............................................................. 122 / 1052 ( 11%)
............................................................. 183 / 1052 ( 17%)
.........................................S................... 244 / 1052 ( 23%)
............................................................. 305 / 1052 ( 28%)
...........................................................ES 366 / 1052 ( 34%)
.E.....EE.................................................... 427 / 1052 ( 40%)
............................................................. 488 / 1052 ( 46%)
............................................................. 549 / 1052 ( 52%)
............................................................. 610 / 1052 ( 57%)
.E........................................................... 671 / 1052 ( 63%)
............................................................. 732 / 1052 ( 69%)
........................................................FEE.. 793 / 1052 ( 75%)
............................................................. 854 / 1052 ( 81%)
............................................................. 915 / 1052 ( 86%)
............................................................. 976 / 1052 ( 92%)
............................................................. 1037 / 1052 ( 98%)
.F.
Time: 31.56 seconds, Memory: 29.64Mb
There were 7 errors:
1) Composer\Test\Package\Archiver\ArchivableFilesFinderTest::testGitExcludes
ErrorException: Not a valid directory resource
/home/vagrant/code/composer/composer/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php:206
/home/vagrant/code/composer/composer/tests/Composer/Test/Package/Archiver/ArchivableFilesFinderTest.php:144
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
2) Composer\Test\Package\Archiver\ArchiveManagerTest::testArchiveTar
Exception: Not implemented yet
/home/vagrant/code/composer/composer/src/Composer/Package/Archiver/PharArchiver.php:42
/home/vagrant/code/composer/composer/src/Composer/Package/Archiver/ArchiveManager.php:147
/home/vagrant/code/composer/composer/tests/Composer/Test/Package/Archiver/ArchiveManagerTest.php:48
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
3) Composer\Test\Package\Archiver\PharArchiverTest::testTarArchive
Exception: Not implemented yet
/home/vagrant/code/composer/composer/src/Composer/Package/Archiver/PharArchiver.php:42
/home/vagrant/code/composer/composer/tests/Composer/Test/Package/Archiver/PharArchiverTest.php:28
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
4) Composer\Test\Package\Archiver\PharArchiverTest::testZipArchive
Exception: Not implemented yet
/home/vagrant/code/composer/composer/src/Composer/Package/Archiver/PharArchiver.php:42
/home/vagrant/code/composer/composer/tests/Composer/Test/Package/Archiver/PharArchiverTest.php:43
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
5) Composer\Repository\ArtifactRepositoryTest::testExtractsConfigsFromZipArchives
RuntimeException: The artifact repository requires PHP's zip extension
/home/vagrant/code/composer/composer/src/Composer/Repository/ArtifactRepository.php:32
/home/vagrant/code/composer/composer/tests/Composer/Test/Repository/ArtifactRepositoryTest.php:32
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
6) Composer\Test\Util\RemoteFilesystemTest::testGetContents
Composer\Downloader\TransportException: The "file:///home/vagrant/code/composer/composer/tests/Composer/Test/Util/RemoteFilesystemTest.php" file could not be downloaded:
/home/vagrant/code/composer/composer/src/Composer/Util/RemoteFilesystem.php:216
/home/vagrant/code/composer/composer/src/Composer/Util/RemoteFilesystem.php:77
/home/vagrant/code/composer/composer/tests/Composer/Test/Util/RemoteFilesystemTest.php:168
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
7) Composer\Test\Util\RemoteFilesystemTest::testCopy
Composer\Downloader\TransportException: The "file:///home/vagrant/code/composer/composer/tests/Composer/Test/Util/RemoteFilesystemTest.php" file could not be downloaded:
/home/vagrant/code/composer/composer/src/Composer/Util/RemoteFilesystem.php:216
/home/vagrant/code/composer/composer/src/Composer/Util/RemoteFilesystem.php:62
/home/vagrant/code/composer/composer/tests/Composer/Test/Util/RemoteFilesystemTest.php:176
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
--
There were 2 failures:
1) Composer\Test\Util\RemoteFilesystemTest::testCaptureAuthenticationParamsFromUrl
Failed asserting that 'The "http://user:[email protected]/something" file could not be downloaded: allow_url_fopen must be enabled in php.ini (Failed to open http://user:[email protected]/something ())' contains "404 Not Found".
/home/vagrant/code/composer/composer/tests/Composer/Test/Util/RemoteFilesystemTest.php:160
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
2) Composer\Test\Util\SvnTest::testCredentials with data set #2 ('svn://[email protected]', ' --username \'johndoe\' --password \'\' ')
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-' --username 'johndoe' --password '' '
+' --username 'johndoe' --password '
/home/vagrant/code/composer/composer/tests/Composer/Test/Util/SvnTest.php:23
/home/vagrant/code/composer/composer/vendor/bin/phpunit:63
FAILURES!
Tests: 1040, Assertions: 1874, Failures: 2, Errors: 7, Skipped: 2.
zsh: exit 2 hhvm ./vendor/bin/phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment