Skip to content

Commit 735c05f

Browse files
committed
uses nette/tester 2.5
1 parent 19deb3a commit 735c05f

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"nette/robot-loader": "^3.0 || ^4.0",
3434
"nette/safe-stream": "^2.2",
3535
"nette/security": "^3.0",
36-
"nette/tester": "^2.4",
36+
"nette/tester": "^2.5",
3737
"latte/latte": "^2.8 || ^3.0",
3838
"tracy/tracy": "^2.9",
3939
"phpstan/phpstan-nette": "^2.0@stable"

tests/bootstrap.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313

1414
// configure environment
1515
Tester\Environment::setup();
16+
Tester\Environment::setupFunctions();
1617
date_default_timezone_set('Europe/Prague');
18+
ob_start();
1719

1820

1921
function getTempDir(): string
@@ -35,9 +37,3 @@ function getTempDir(): string
3537

3638
return $dir;
3739
}
38-
39-
40-
function test(string $title, Closure $function): void
41-
{
42-
$function();
43-
}

0 commit comments

Comments
 (0)