Skip to content

unit tests falls #1

@loothood

Description

@loothood

Hi!
I run all my tests with command
./bin/codecept run tests/
It includes acceptance tests and unit tests
if I include teststatistics in my project, tests falls with error:

[PHPUnit_Framework_Exception]
Undefined offset: 1

Exception trace:
() at /var/www/site/vendor/codeception/codeception/src/Codeception/Subscriber/ErrorHandler.php:48
Codeception\Subscriber\ErrorHandler->errorHandler() at /var/www/site/vendor/redcomponent/teststatistics/src/Teststatistics.php:53
Codeception\Extension\Teststatistics->beforeTest() at n/a:n/a
call_user_func() at /var/www/site/vendor/symfony/event-dispatcher/EventDispatcher.php:181
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /var/www/site/vendor/symfony/event-dispatcher/EventDispatcher.php:46

if I run:
./bin/codecept run tests/acceptance/
it ok, but for unit tests this way don't work. I get the same error that the above.
What I am doing wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions