This commit is contained in:
Nuno Maduro
2020-05-11 18:38:30 +02:00
commit de2929077b
112 changed files with 6211 additions and 0 deletions

View File

@ -0,0 +1,15 @@
<?php
$file = __DIR__ . DIRECTORY_SEPARATOR . 'after-all-test';
afterAll(function () use ($file) {
unlink($file);
});
test('deletes file after all', function () use ($file) {
file_put_contents($file, 'foo');
assertFileExists($file);
register_shutdown_function(function () use ($file) {
assertFileNotExists($file);
});
});