File tree Expand file tree Collapse file tree 5 files changed +11
-39
lines changed
Expand file tree Collapse file tree 5 files changed +11
-39
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3- /**
4- * Test: Utils\DocBuilder
5- */
6- require __DIR__ . '/../../bootstrap.php ' ;
7-
83use Contributte \Nextras \Orm \Generator \Utils \DocBuilder ;
4+ use Contributte \Tester \Toolkit ;
95use Tester \Assert ;
106
11- test (function (): void {
7+ require __DIR__ . '/../../bootstrap.php ' ;
8+
9+ Toolkit::test (function (): void {
1210 $ b = new DocBuilder ();
1311 Assert::equal ('' , (string ) $ b );
1412
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3- /**
4- * Test: Utils\Helpers
5- */
6-
7- require __DIR__ . '/../../bootstrap.php ' ;
8-
93use Contributte \Nextras \Orm \Generator \Utils \Helpers ;
4+ use Contributte \Tester \Toolkit ;
105use Tester \Assert ;
116
12- /**
13- * Helpers::camelCase
14- */
15- test (function (): void {
7+ require __DIR__ . '/../../bootstrap.php ' ;
8+
9+ Toolkit::test (function (): void {
1610 Assert::equal ('foo ' , Helpers::camelCase ('foo ' ));
1711 Assert::equal ('fooBar ' , Helpers::camelCase ('fooBar ' ));
1812 Assert::equal ('fooBar ' , Helpers::camelCase ('foo bar ' ));
@@ -25,10 +19,7 @@ test(function (): void {
2519 Assert::equal ('fooBar1 ' , Helpers::camelCase ('foo !@#$%^&*{}[]() bar 1 ' ));
2620});
2721
28- /**
29- * Helpers::stripMnDelimiters
30- */
31- test (function (): void {
22+ Toolkit::test (function (): void {
3223 Assert::equal ('foobar ' , Helpers::stripMnDelimiters ('foo_has_bar ' ));
3324 Assert::equal ('foobar ' , Helpers::stripMnDelimiters ('foo_x_bar ' ));
3425 Assert::equal ('foobar ' , Helpers::stripMnDelimiters ('foo_to_bar ' ));
Original file line number Diff line number Diff line change 11<?php declare (strict_types = 1 );
22
3- use Ninjify \ Nunjuck \Environment ;
3+ use Contributte \ Tester \Environment ;
44
55if (@!include __DIR__ . '/../vendor/autoload.php ' ) {
66 echo 'Install Nette Tester using `composer update --dev` ' ;
77 exit (1 );
88}
99
10- // Configure environment
11- Environment::setupTester ();
12- Environment::setupTimezone ();
13- Environment::setupVariables (__DIR__ );
10+ Environment::setup (__DIR__ );
You can’t perform that action at this time.
0 commit comments