Trying to get property ‘_mockery_expectations_count’ of non-object

For some reasons, you got this error during php unit tests:

Trying to get property '_mockery_expectations_count' of non-object

Use this trait:

Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration

Source: https://github.com/mockery/mockery/issues/376


Posted

in

by

Tags:

Comments

Leave a Reply