Skip to content

Instantly share code, notes, and snippets.

@predakanga
Created July 10, 2016 09:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save predakanga/5e53a2e032be8d72ba9269acbe663acd to your computer and use it in GitHub Desktop.
Save predakanga/5e53a2e032be8d72ba9269acbe663acd to your computer and use it in GitHub Desktop.
PHP-DI PHPUnit run on OS X, PHP 7.0.7
git clone https://github.com/PHP-DI/PHP-DI.git
cd PHP-DI
composer install
vendor/bin/phpunit
php --version
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing ocramius/package-versions (1.0.4)
Loading from cache
- Installing php-di/phpdoc-reader (2.0.1)
Loading from cache
- Installing container-interop/container-interop (1.1.0)
Loading from cache
- Installing php-di/invoker (1.3.2)
Loading from cache
- Installing symfony/yaml (v3.1.2)
Loading from cache
- Installing sebastian/version (1.0.6)
Loading from cache
- Installing sebastian/global-state (1.1.1)
Loading from cache
- Installing sebastian/recursion-context (1.0.2)
Loading from cache
- Installing sebastian/exporter (1.2.2)
Loading from cache
- Installing sebastian/environment (1.3.7)
Loading from cache
- Installing sebastian/diff (1.4.1)
Loading from cache
- Installing sebastian/comparator (1.2.0)
Loading from cache
- Installing doctrine/instantiator (1.0.5)
Loading from cache
- Installing phpunit/php-text-template (1.2.1)
Loading from cache
- Installing phpunit/phpunit-mock-objects (2.3.8)
Loading from cache
- Installing phpunit/php-timer (1.0.8)
Loading from cache
- Installing phpunit/php-file-iterator (1.4.1)
Loading from cache
- Installing phpunit/php-token-stream (1.4.8)
Loading from cache
- Installing phpunit/php-code-coverage (2.2.4)
Loading from cache
- Installing webmozart/assert (1.0.2)
Loading from cache
- Installing phpdocumentor/reflection-common (1.0)
Loading from cache
- Installing phpdocumentor/type-resolver (0.2)
Loading from cache
- Installing phpdocumentor/reflection-docblock (3.1.0)
Loading from cache
- Installing phpspec/prophecy (v1.6.1)
Loading from cache
- Installing phpunit/phpunit (4.8.26)
Loading from cache
- Installing mnapoli/phpunit-easymock (0.2.3)
Loading from cache
- Installing doctrine/cache (v1.6.0)
Loading from cache
- Installing doctrine/lexer (v1.0.1)
Loading from cache
- Installing doctrine/annotations (v1.2.7)
Loading from cache
- Installing zendframework/zend-eventmanager (3.0.1)
Loading from cache
- Installing zendframework/zend-code (3.0.4)
Loading from cache
- Installing ocramius/proxy-manager (2.0.3)
Loading from cache
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
zendframework/zend-eventmanager suggests installing zendframework/zend-stdlib (^2.7.3 || ^3.0, to use the FilterChain feature)
zendframework/zend-code suggests installing zendframework/zend-stdlib (Zend\Stdlib component)
ocramius/proxy-manager suggests installing ocramius/generated-hydrator (To have very fast object to array to object conversion for ghost objects)
ocramius/proxy-manager suggests installing zendframework/zend-xmlrpc (To have the XmlRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-json (To have the JsonRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-soap (To have the Soap adapter (Remote Object feature))
Writing lock file
Generating autoload files
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
ocramius/package-versions: Generating version class...
ocramius/package-versions: ...done generating version class
PHPUnit 4.8.26 by Sebastian Bergmann and contributors.
............................................................... 63 / 406 ( 15%)
............................................................... 126 / 406 ( 31%)
.......................................................F....... 189 / 406 ( 46%)
............................................................... 252 / 406 ( 62%)
...................................................F........... 315 / 406 ( 77%)
...........................F.....................F............. 378 / 406 ( 93%)
............................
Time: 389 ms, Memory: 10.00MB
There were 4 failures:
1) DI\Test\UnitTest\Definition\Resolver\FactoryResolverTest::should_throw_if_the_factory_is_not_callable
Failed asserting that exception message 'Entry "foo" cannot be resolved: factory 'Hello world' is neither a callable nor a valid container entry' contains 'Entry "foo" cannot be resolved: factory "Hello world" is neither a callable nor a valid container entry'.
2) DI\Test\IntegrationTest\CallFunctionTest::test_not_callable
Failed asserting that exception message ''foo' is neither a callable nor a valid container entry' contains '"foo" is neither a callable nor a valid container entry'.
3) DI\Test\IntegrationTest\Definitions\FactoryDefinitionTest::test_not_callable_factory_definition
Failed asserting that exception message 'Entry "foo" cannot be resolved: factory 'Hello World' is neither a callable nor a valid container entry' contains 'Entry "foo" cannot be resolved: factory "Hello World" is neither a callable nor a valid container entry'.
4) DI\Test\IntegrationTest\ErrorMessages\ErrorMessagesTest::test_factory_not_callable
Failed asserting that exception message 'Entry "foo" cannot be resolved: factory 'bar' is neither a callable nor a valid container entry' contains 'Entry "foo" cannot be resolved: factory "bar" is neither a callable nor a valid container entry'.
FAILURES!
Tests: 406, Assertions: 1084, Failures: 4.
PHP 7.0.7 (cli) (built: May 27 2016 11:13:44) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment