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
477 stars 30 forks source link

stat(): stat failed for vendor/pestphp/pest/src/Plugins/../../.temp/only.lock #48

Closed eleftrik closed 8 months ago

eleftrik commented 8 months ago
  Tests:    89 passed (249 assertions)
  Duration: 3.94s
  Parallel: 4 processes

   Pest\Exceptions\FatalException

  stat(): stat failed for /Users/erik/Sviluppo/www/encodia/edit-cli/vendor/pestphp/pest/src/Plugins/../../.temp/only.lock

  at vendor/dg/bypass-finals/src/NativeWrapper.php:206
    202▕    private function native(string $func)
    203▕    {
    204▕        stream_wrapper_restore(self::PROTOCOL);
    205▕        try {
  ➜ 206▕            return $func(...array_slice(func_get_args(), 1));
    207▕        } finally {
    208▕            stream_wrapper_unregister(self::PROTOCOL);
    209▕            stream_wrapper_register(self::PROTOCOL, self::$outerWrapper);
    210▕        }

Script XDEBUG_MODE=off ./vendor/bin/pest --parallel --bail --exclude-group=API,S3 --colors=always handling the test event returned with error code 1

I'm running Pest on a Laravel Zero application.

This is the same problem described here: https://github.com/pestphp/pest/issues/1079

As far as I could understand, this error is happening only under these conditions:

Thank you.

eleftrik commented 8 months ago

This bug was about Pest and it has already fixed.