zendframework/modules.zendframework.com

Running UserTest\GitHub\LoginListenerTest::testAttach() in isolation results in error

localheinz opened this issue · 0 comments

Running

$ vendor/bin/phpunit --filter testAttach

results in

PHPUnit 4.0.20 by Sebastian Bergmann.

Configuration read from /Users/am/Sites/zendframework/modules.zendframework.com/phpunit.xml

E

Time: 125 ms, Memory: 8.75Mb

There was 1 error:

1) UserTest\GitHub\LoginListenerTest::testAttach
Argument 1 passed to User\GitHub\LoginListener::attachShared() must implement interface Zend\EventManager\SharedEventManagerInterface, boolean given, called in /Users/am/Sites/zendframework/modules.zendframework.com/module/User/test/UserTest/GitHub/LoginListenerTest.php on line 35 and defined

/Users/am/Sites/zendframework/modules.zendframework.com/module/User/src/User/GitHub/LoginListener.php:21
/Users/am/Sites/zendframework/modules.zendframework.com/module/User/test/UserTest/GitHub/LoginListenerTest.php:35

FAILURES!                          
Tests: 1, Assertions: 0, Errors: 1.

Generating code coverage report in Clover XML format ... done