You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Codeception\Util\Stub::atLeastOnce(), Codeception\Util\Stub::exactly(), Codeception\Util\Stub::never(), Codeception\Util\Stub::once() examples do not show, that in order for those methods to work, you have to insert \Codeception\Test\Unit
The text was updated successfully, but these errors were encountered:
I think it was a mistake to accept PR which adds mocking into Stub class.
Stub should make stubs only, everything other is evil 👿
Use proper mocking framework for mocks.
Codeception\Util\Stub::atLeastOnce()
,Codeception\Util\Stub::exactly()
,Codeception\Util\Stub::never()
,Codeception\Util\Stub::once()
examples do not show, that in order for those methods to work, you have to insert\Codeception\Test\Unit
The text was updated successfully, but these errors were encountered: