<?php register_shutdown_function(callable $callback, mixed ...$args): void
<?php $output, ); register_shutdown_function(fn () => $kernel->shutdown()); foreach (self::BOOTSTRAPPERS as $bootstrapper) { $bootstrapper = Container::getInstance()->get($bootstrapper);
<?php test('deletes file after all', function () use ($file) { file_put_contents($file, 'foo'); $this->assertFileExists($file); register_shutdown_function(function () { }); });
<?php $foo->afterAll = true; }); register_shutdown_function(function () use ($foo) { assertFalse($foo->beforeAll); assertFalse($foo->beforeEach); assertFalse($foo->afterEach); assertFalse($foo->afterAll); });