Skip to content
Permalink
Browse files

tests: updated bootstrap.php

  • Loading branch information...
dg committed Aug 5, 2019
1 parent 2d3a69f commit 904b1d7aa8332894df8c0f6db1556bad269d5748
Showing with 8 additions and 8 deletions.
  1. +8 −8 tests/bootstrap.php
@@ -1,28 +1,28 @@
<?php
declare(strict_types=1);
// The Nette Tester command-line runner can be
// invoked through the command: ../../vendor/bin/tester .
// invoked through the command: ../vendor/bin/tester .
declare(strict_types=1);
if (@!include __DIR__ . '/../vendor/autoload.php') {
echo 'Install Nette Tester using `composer install`';
exit(1);
}
// configure environment
Tester\Environment::setup();
date_default_timezone_set('Europe/Prague');
error_reporting(~E_USER_DEPRECATED);
// create temporary directory
define('TEMP_DIR', __DIR__ . '/tmp/' . getmypid());
@mkdir(dirname(TEMP_DIR)); // @ - directory may already exist
Tester\Helpers::purge(TEMP_DIR);
define('TEMP_DIR', __DIR__ . '/tmp/' . lcg_value());
@mkdir(dirname(TEMP_DIR));
@mkdir(TEMP_DIR);
function test(\Closure $function)
function test(\Closure $function): void
{
$function();
}

0 comments on commit 904b1d7

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