vendredi 10 janvier 2020

AspectMock test::double doesn't work in Yii2 tests

When I try to mock anything like so:

Test::double(MyService::class, [
    'accept' => true
]);

It throws error:

Call to a member function registerClass() on null

I could not find anything in the internet to help me with this one. Any ideas?

Aucun commentaire:

Enregistrer un commentaire