Skip to content

Commit 4611749

Browse files
committed
uses nette/tester 2.5.2
1 parent f01021e commit 4611749

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"latte/latte": "Allows using Latte in templates"
2727
},
2828
"require-dev": {
29-
"nette/tester": "^2.5",
29+
"nette/tester": "^2.5.2",
3030
"nette/di": "^3.2",
3131
"nette/forms": "^3.2",
3232
"nette/robot-loader": "^4.0",

tests/bootstrap.php

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

1414
// configure environment
1515
Tester\Environment::setup();
16+
Tester\Environment::setupFunctions();
1617
date_default_timezone_set('Europe/Prague');
1718
Mockery::setLoader(new Mockery\Loader\RequireLoader(getTempDir()));
1819

@@ -44,11 +45,9 @@ function getTempDir(): string
4445
}
4546

4647

47-
function test(string $title, Closure $function): void
48-
{
49-
$function();
48+
tearDown(function () {
5049
Mockery::close();
51-
}
50+
});
5251

5352

5453
class Notes

0 commit comments

Comments
 (0)