From 24c3fc3dcfed14ba2655e1c05460e0802efe2182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Ondr=C3=A1=C4=8Dek?= Date: Wed, 2 Oct 2019 12:51:02 +0200 Subject: [PATCH] Composer: update Nette Tester and QA MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Roman Ondráček --- composer.json | 4 ++-- src/functions.php | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5f356cb..c6fdb80 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/functions.php b/src/functions.php index 4f09441..3c08118 100644 --- a/src/functions.php +++ b/src/functions.php @@ -17,6 +17,7 @@ function test(Closure $function): void { $function(); } + } if (!function_exists('mocki')) { @@ -30,6 +31,7 @@ function mocki(?string $class = null, array $defaults = []): Mock return $builder->getMock(); } + } if (!function_exists('mockis')) { @@ -41,6 +43,7 @@ function mockis(?string $class = null, array $methods = []): MockInterface { return mockisr()->create($class, $methods); } + } if (!function_exists('mockisr')) { @@ -49,4 +52,5 @@ function mockisr(): Registry { return new Registry(); } + }