Skip to content

Commit

Permalink
uses nette/tester 2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 2, 2025
1 parent cea7aa3 commit cf9dac5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"latte/latte": "Allows using Latte in templates"
},
"require-dev": {
"nette/tester": "^2.5",
"nette/tester": "^2.5.2",
"nette/di": "^3.2",
"nette/forms": "^3.2",
"nette/robot-loader": "^4.0",
Expand Down
7 changes: 3 additions & 4 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

// configure environment
Tester\Environment::setup();
Tester\Environment::setupFunctions();
date_default_timezone_set('Europe/Prague');
Mockery::setLoader(new Mockery\Loader\RequireLoader(getTempDir()));

Expand Down Expand Up @@ -44,11 +45,9 @@ function getTempDir(): string
}


function test(string $title, Closure $function): void
{
$function();
tearDown(function () {
Mockery::close();
}
});


class Notes
Expand Down

0 comments on commit cf9dac5

Please sign in to comment.