Skip to content

Commit

Permalink
Composer: update Nette Tester and QA
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Ondráček <ondracek.roman@centrum.cz>
  • Loading branch information
Roman3349 authored and f3l1x committed Oct 2, 2019
1 parent f65a270 commit 24c3fc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
],
"require": {
"php": ">=7.1",
"nette/tester": "^2.2"
"nette/tester": "^2.3"
},
"require-dev": {
"ninjify/qa": "^0.9",
"ninjify/qa": "^0.10",
"mockery/mockery": "^1.2.2",
"janmarek/mockista": "^1.1.0",
"nette/di": "~2.4.15",
Expand Down
4 changes: 4 additions & 0 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function test(Closure $function): void
{
$function();
}

}

if (!function_exists('mocki')) {
Expand All @@ -30,6 +31,7 @@ function mocki(?string $class = null, array $defaults = []): Mock

return $builder->getMock();
}

}

if (!function_exists('mockis')) {
Expand All @@ -41,6 +43,7 @@ function mockis(?string $class = null, array $methods = []): MockInterface
{
return mockisr()->create($class, $methods);
}

}

if (!function_exists('mockisr')) {
Expand All @@ -49,4 +52,5 @@ function mockisr(): Registry
{
return new Registry();
}

}

0 comments on commit 24c3fc3

Please # to comment.