We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a problem with mocking php Datetime object. Does AspectMock work correctly with global php objects?
code
$datetime = test::double(DateTime::class, ['format' => '1979-06-18']); $date = (new DateTime())->format('Y-m-d'); $datetime->verifyInvoked('format'); $this->assertEquals('1979-06-18', $date);
will raise
Expected DateTime::format to be invoked but it never occurred
The text was updated successfully, but these errors were encountered:
I'm currently using Chronos instead of using \DateTime, because I had the same problem trying to double \DateTime class
Sorry, something went wrong.
This is a missing feature of goaop: goaop/framework#188
No branches or pull requests
I have a problem with mocking php Datetime object. Does AspectMock work correctly with global php objects?
code
will raise
The text was updated successfully, but these errors were encountered: