Skip to content

Commit c359009

Browse files
committed
refactor: move test helpers to Drift.
1 parent 7d5b45d commit c359009

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

packages/drift/src/FrameworkIntegrationTestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use Tempest\Database\Connection\Connection;
2020
use Tempest\Database\Migrations\MigrationManager;
2121
use Tempest\Discovery\DiscoveryLocation;
22-
use Tempest\Framework\Testing\IntegrationTest;
2322
use Tempest\Reflection\MethodReflector;
2423
use Tempest\Router\HttpApplication;
2524
use Tempest\Router\Route;

src/Tempest/Framework/Testing/Http/HttpRouterTester.php renamed to packages/drift/src/Http/HttpRouterTester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tempest\Framework\Testing\Http;
5+
namespace Tempest\Drift\Http;
66

77
use Laminas\Diactoros\ServerRequestFactory;
88
use Psr\Http\Message\ServerRequestInterface as PsrRequest;

src/Tempest/Framework/Testing/Http/TestResponseHelper.php renamed to packages/drift/src/Http/TestResponseHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tempest\Framework\Testing\Http;
5+
namespace Tempest\Drift\Http;
66

77
use Closure;
88
use Generator;

src/Tempest/Framework/Testing/InstallerTester.php renamed to packages/drift/src/InstallerTester.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22

33
declare(strict_types=1);
44

5-
namespace Tempest\Framework\Testing;
5+
namespace Tempest\Drift;
66

77
use PHPUnit\Framework\Assert;
88
use RecursiveDirectoryIterator;
99
use RecursiveIteratorIterator;
1010
use Tempest\Container\Container;
1111
use Tempest\Core\Composer;
12-
use Tempest\Core\ComposerNamespace;
1312
use Tempest\Core\FrameworkKernel;
1413
use Tempest\Core\ShellExecutors\NullShellExecutor;
1514
use Tempest\Support\Namespace\Psr4Namespace;

src/Tempest/Framework/Testing/IntegrationTest.php renamed to packages/drift/src/IntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tempest\Framework\Testing;
5+
namespace Tempest\Drift;
66

77
use PHPUnit\Framework\TestCase;
88
use Tempest\Clock\Clock;
@@ -14,8 +14,8 @@
1414
use Tempest\Core\Kernel;
1515
use Tempest\Database\Migrations\MigrationManager;
1616
use Tempest\DateTime\DateTimeInterface;
17+
use Tempest\Drift\Http\HttpRouterTester;
1718
use Tempest\EventBus\Testing\EventBusTester;
18-
use Tempest\Framework\Testing\Http\HttpRouterTester;
1919
use Tempest\Http\GenericRequest;
2020
use Tempest\Http\Method;
2121
use Tempest\Http\Request;

src/Tempest/Framework/Testing/ViteTester.php renamed to packages/drift/src/ViteTester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Tempest\Framework\Testing;
5+
namespace Tempest\Drift;
66

77
use InvalidArgumentException;
88
use Tempest\Container\Container;

tests/Architecture/ArchitectureTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use PHPat\Selector\Selector;
99
use PHPat\Test\Builder\Rule;
1010
use PHPat\Test\PHPat;
11-
use Tempest\Framework\Testing\IntegrationTest;
11+
use Tempest\Drift\IntegrationTest;
1212

1313
final class ArchitectureTestCase
1414
{

tests/Integration/Testing/Http/TestResponseHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use PHPUnit\Framework\AssertionFailedError;
88
use PHPUnit\Framework\Attributes\DataProvider;
99
use PHPUnit\Framework\TestCase;
10-
use Tempest\Framework\Testing\Http\TestResponseHelper;
10+
use Tempest\Drift\Http\TestResponseHelper;
1111
use Tempest\Http\GenericResponse;
1212
use Tempest\Http\Status;
1313

0 commit comments

Comments
 (0)