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
docker compose exec php vendor/bin/phpunit tests/HandlerClassTest.php
PHPUnit 10.1.3 by Sebastian Bergmann and contributors.
Runtime: PHP 8.2.7
Configuration: /var/www/html/phpunit.xml
E 1 / 1 (100%)
Time: 00:00.006, Memory: 12.00 MB
There was 1 error:
1) Tests\HandlerClassTest::testItDoesNotWork
Error: Undefined constant "DateTime"
/var/www/html/tests/HandlerClassTest.php:33
/var/www/html/tests/HandlerClassTest.php:17
--
There was 1 risky test:
1) Tests\HandlerClassTest::testItDoesNotWork
This test did not perform any assertions
/var/www/html/tests/HandlerClassTest.php:13
Additional Information
I found this PR #1160 but I think this did only work by accident? Or am I missing something? 😄
The text was updated successfully, but these errors were encountered:
Mockery Version
1.6.2
PHP Version
PHP 8.2
Issue Description
Hey,
I'm trying to mock a class method which has a
new DateTime
as default argument but it's not working. I get:Error: Undefined constant "DateTime"
.Steps to Reproduce
Expected Behavior
No response
Actual Behavior
No response
Exception or Error
Additional Information
I found this PR #1160 but I think this did only work by accident? Or am I missing something? 😄
The text was updated successfully, but these errors were encountered: