dg / bypass-finals

Removes `final` and `readonly` keywords from source code on-the-fly and allows mocking of final methods and classes. It can be used together with any test tool such as PHPUnit or Mockery.
Other
487 stars 30 forks source link

stat(): stat failed for #52

Closed caiovncius closed 6 months ago

caiovncius commented 9 months ago

Hello everyone,

I'm using this package in my Laravel project. But, after I did add this extension in the phpunit.xml file, all my tests is showing one warning:

stat(): stat failed for /var/www/html/

Should I make some configuration for that?

clementlanot commented 8 months ago

Same issue for me with Laravel 11

davideprevosto commented 7 months ago

Same issue for me on Laravel 10. I am using https://github.com/nunomaduro/mock-final-classes (it's using https://github.com/dg/bypass-finals).

stat(): stat failed for /Users/encodia/Sviluppo/www/project/vendor/composer/../fakerphp/faker/src/Faker/Provider/en_US/Barcode.php

MarcoLeko commented 6 months ago

I get a similar error in a symfony project using phpunit version 9.5: This time in the NativeWrapper.php:206

ErrorException: stat(): stat failed for /app/vendor/composer/../jsmdg/event-schema/src/PHPUnit/Framework/TestFailure.php in /app/vendor/dg/bypass-finals/src/NativeWrapper.php:206