diff --git a/composer.json b/composer.json index 0a9b282..44f7a82 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,7 @@ }, "autoload-dev": { "psr-4": { - "Tests\\Contributte\\Utils\\": "tests/cases/Unit" + "Tests\\": "tests" } }, "minimum-stability": "dev", diff --git a/tests/cases/Unit/Arrays.phpt b/tests/Cases/Arrays.phpt similarity index 91% rename from tests/cases/Unit/Arrays.phpt rename to tests/Cases/Arrays.phpt index 6d4c0cb..f7615c3 100644 --- a/tests/cases/Unit/Arrays.phpt +++ b/tests/Cases/Arrays.phpt @@ -3,7 +3,7 @@ use Contributte\Utils\Arrays; use Tester\Assert; -require_once __DIR__ . '/../../bootstrap.php'; +require_once __DIR__ . '/../bootstrap.php'; test(function (): void { $array1 = ['a', 'b', 'c', 'd']; diff --git a/tests/cases/Unit/Config.phpt b/tests/Cases/Config.phpt similarity index 94% rename from tests/cases/Unit/Config.phpt rename to tests/Cases/Config.phpt index 34bad26..a908fc1 100644 --- a/tests/cases/Unit/Config.phpt +++ b/tests/Cases/Config.phpt @@ -1,6 +1,6 @@ 'city', 3 => 'id', 4 => 'x', - ], __DIR__ . '/../../fixtures/sample.csv')); + ], __DIR__ . '/../Fixtures/sample.csv')); }); // Complex array matching @@ -67,7 +67,7 @@ test(function (): void { 2 => 'city', 3 => 'extra.id', 4 => 'extra.x', - ], __DIR__ . '/../../fixtures/sample.csv')); + ], __DIR__ . '/../Fixtures/sample.csv')); }); // Part of simple array matching @@ -81,7 +81,7 @@ test(function (): void { ], ], Csv::structural([ 4 => 'x', - ], __DIR__ . '/../../fixtures/sample.csv')); + ], __DIR__ . '/../Fixtures/sample.csv')); }); // Part of complex array matching @@ -103,7 +103,7 @@ test(function (): void { ], ], Csv::structural([ 4 => 'x.y.z', - ], __DIR__ . '/../../fixtures/sample.csv')); + ], __DIR__ . '/../Fixtures/sample.csv')); }); // Overriding @@ -118,7 +118,7 @@ test(function (): void { ], Csv::structural([ 2 => 'x', 4 => 'x', - ], __DIR__ . '/../../fixtures/sample.csv')); + ], __DIR__ . '/../Fixtures/sample.csv')); }); // Invalid arguments @@ -132,6 +132,6 @@ test(function (): void { 4 => 'e', 5 => 'f', 6 => 'g', - ], __DIR__ . '/../../fixtures/sample.csv'); + ], __DIR__ . '/../Fixtures/sample.csv'); }, InvalidStateException::class); }); diff --git a/tests/cases/Unit/DI/DateTimeFactoryExtensions.phpt b/tests/Cases/DI/DateTimeFactoryExtensions.phpt similarity index 92% rename from tests/cases/Unit/DI/DateTimeFactoryExtensions.phpt rename to tests/Cases/DI/DateTimeFactoryExtensions.phpt index e39b4b3..6dce2a9 100644 --- a/tests/cases/Unit/DI/DateTimeFactoryExtensions.phpt +++ b/tests/Cases/DI/DateTimeFactoryExtensions.phpt @@ -11,7 +11,7 @@ use Nette\DI\Container; use Nette\DI\ContainerLoader; use Tester\Assert; -require_once __DIR__ . '/../../../bootstrap.php'; +require_once __DIR__ . '/../../bootstrap.php'; test(function (): void { $loader = new ContainerLoader(TEMP_DIR, true); diff --git a/tests/cases/Unit/DateTime.compare.phpt b/tests/Cases/DateTime.compare.phpt similarity index 96% rename from tests/cases/Unit/DateTime.compare.phpt rename to tests/Cases/DateTime.compare.phpt index eb93588..150eab2 100644 --- a/tests/cases/Unit/DateTime.compare.phpt +++ b/tests/Cases/DateTime.compare.phpt @@ -4,7 +4,7 @@ * Test: DateTime [comparing] */ -require_once __DIR__ . '/../../bootstrap.php'; +require_once __DIR__ . '/../bootstrap.php'; use Contributte\Utils\DateTime; use Tester\Assert; diff --git a/tests/cases/Unit/DateTime.phpt b/tests/Cases/DateTime.phpt similarity index 98% rename from tests/cases/Unit/DateTime.phpt rename to tests/Cases/DateTime.phpt index b64d775..f219ce4 100644 --- a/tests/cases/Unit/DateTime.phpt +++ b/tests/Cases/DateTime.phpt @@ -4,7 +4,7 @@ * Test: DateTime */ -require_once __DIR__ . '/../../bootstrap.php'; +require_once __DIR__ . '/../bootstrap.php'; use Contributte\Utils\DateTime; use Tester\Assert; diff --git a/tests/cases/Unit/DeeperTest.phpt b/tests/Cases/DeeperTest.php similarity index 93% rename from tests/cases/Unit/DeeperTest.phpt rename to tests/Cases/DeeperTest.php index 8984789..9e0257c 100644 --- a/tests/cases/Unit/DeeperTest.phpt +++ b/tests/Cases/DeeperTest.php @@ -1,8 +1,8 @@