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
When trying to write a test using the MockedClientImpl, when I try to pass an instance of MockedClientImpl into my mocked class under test, I get an error: ErrorException : The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
The exception is being thrown on line 127 of PAGI/Client/Impl/MockedClientImpl.php, which would indicate it's trying to make a call assertion, but it is only being instantiated, no assertions were specified.
Here's my test code for reference
$agiClient = new MockedClientImpl();
$callLog = new Call();
$mockHandler = Mockery::mock(CallHandler::class, [$agiClient, $callLog])->makePartial();
$mockHandler->shouldAllowMockingProtectedMethods();
The text was updated successfully, but these errors were encountered:
nospoon
changed the title
[BUG] Error when trying to instantiate MockerClientImpl
[BUG] Error when trying to instantiate MockedClientImpl
May 20, 2021
When trying to write a test using the MockedClientImpl, when I try to pass an instance of MockedClientImpl into my mocked class under test, I get an error:
ErrorException : The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
The exception is being thrown on line 127 of PAGI/Client/Impl/MockedClientImpl.php, which would indicate it's trying to make a call assertion, but it is only being instantiated, no assertions were specified.
Here's my test code for reference
The text was updated successfully, but these errors were encountered: