diff --git a/composer.json b/composer.json index ad4cb07..ad6d053 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "php": "8.1 - 8.3" }, "require-dev": { - "nette/tester": "^2.0", + "nette/tester": "^2.5", "tracy/tracy": "^2.9", "phpstan/phpstan": "^1" }, diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 40df5cf..0c8463e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -12,9 +12,4 @@ // configure environment Tester\Environment::setup(); - - -function test(string $title, Closure $function) -{ - $function(); -} +Tester\Environment::setupFunctions();