Skip to content

Commit

Permalink
newer nette/tester
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed May 17, 2017
1 parent af04dd7 commit 5909b31
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 15 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 @@
"nette/application": "^2.4@dev",
"nette/bootstrap": "^2.4@dev",
"nette/http": "^2.4@dev",
"nette/tester": "~1.3@rc"
"nette/tester": "~1.7"
},
"support": {
"email": "filip@prochazka.su",
Expand Down
2 changes: 1 addition & 1 deletion tests/KdybyTests/Monolog/Extension.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ class ExtensionTest extends Tester\TestCase

}

run(new ExtensionTest());
(new ExtensionTest())->run();
2 changes: 1 addition & 1 deletion tests/KdybyTests/Monolog/FallbackNetteHandler.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ class FallbackNetteHandlerTest extends Tester\TestCase

}

\run(new FallbackNetteHandlerTest());
(new FallbackNetteHandlerTest())->run();
2 changes: 1 addition & 1 deletion tests/KdybyTests/Monolog/MonologAdapter.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ class MonologAdapterTest extends Tester\TestCase

}

\run(new MonologAdapterTest());
(new MonologAdapterTest())->run();
2 changes: 1 addition & 1 deletion tests/KdybyTests/Monolog/PriorityProcessor.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,4 @@ class PriorityProcessorTest extends Tester\TestCase

}

\run(new PriorityProcessorTest());
(new PriorityProcessorTest())->run();
2 changes: 1 addition & 1 deletion tests/KdybyTests/Monolog/TracyExceptionProcessor.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@ class TracyExceptionProcessorTest extends Tester\TestCase

}

\run(new TracyExceptionProcessorTest());
(new TracyExceptionProcessorTest())->run();
2 changes: 1 addition & 1 deletion tests/KdybyTests/Monolog/TracyUrlProcessor.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ class TracyUrlProcessorTest extends Tester\TestCase

}

\run(new TracyUrlProcessorTest());
(new TracyUrlProcessorTest())->run();
8 changes: 0 additions & 8 deletions tests/KdybyTests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,3 @@ class_alias('Tester\Assert', 'Assert');
'PHP_SELF', 'SCRIPT_NAME', 'SERVER_ADDR', 'SERVER_SOFTWARE', 'HTTP_HOST', 'DOCUMENT_ROOT', 'OS', 'argc', 'argv']));
$_SERVER['REQUEST_TIME'] = 1234567890;
$_ENV = $_GET = $_POST = [];

function id($val) {
return $val;
}

function run(Tester\TestCase $testCase) {
$testCase->run(isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : NULL);
}

0 comments on commit 5909b31

Please sign in to comment.