Skip to content
Permalink
Browse files

test: removed dead code

  • Loading branch information...
dg committed Sep 18, 2019
1 parent 8956f86 commit fcfe93aee35e503d48c4cf407775dc797e3bc2fc
Showing with 0 additions and 17 deletions.
  1. +0 −17 tests/bootstrap.php
@@ -18,23 +18,6 @@
date_default_timezone_set('Europe/Prague');
// create temporary directory
(function () {
define('TEMP_DIR', __DIR__ . '/tmp/' . getmypid());
// garbage collector
$GLOBALS['\\lock'] = $lock = fopen(__DIR__ . '/lock', 'w');
if (rand(0, 100)) {
flock($lock, LOCK_SH);
@mkdir(dirname(TEMP_DIR));
} elseif (flock($lock, LOCK_EX)) {
Tester\Helpers::purge(dirname(TEMP_DIR));
}
@mkdir(TEMP_DIR);
})();
function test(\Closure $function): void
{
$function();

0 comments on commit fcfe93a

Please sign in to comment.
You can’t perform that action at this time.