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
I am creating a mock for the inbuilt php class sqli with: $this->sqliMock = Mockery::mock(mysqli::class);
then adding it to the SUT with dependency injection
this is working and I get a mockery object. However I am unable to then set expectations on it. Comparing this mock with another mock object for one of my own classes in xdebug I see that $this->sqliMock is lacking all the _mockery_* properties I normally see on an mock with the exception of _mockery_methods.
The only odd thing going on is that in the SUT the dependency is stored in a static property, is this what could be messing up the mock?
The text was updated successfully, but these errors were encountered:
With Mockery 1.5.1 and phpunit 9.5.28
I am creating a mock for the inbuilt php class sqli with:
$this->sqliMock = Mockery::mock(mysqli::class);
then adding it to the SUT with dependency injection
this is working and I get a mockery object. However I am unable to then set expectations on it. Comparing this mock with another mock object for one of my own classes in xdebug I see that
$this->sqliMock
is lacking all the_mockery_*
properties I normally see on an mock with the exception of_mockery_methods
.The only odd thing going on is that in the SUT the dependency is stored in a static property, is this what could be messing up the mock?
The text was updated successfully, but these errors were encountered: