diff --git a/README.md b/README.md index d3a4672..0e55769 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ -# Utopia Test +# Utopia Tests A lightweight PHP testing library that provides useful testing utilities and extensions for PHPUnit. ## Installation ```bash -composer require utopia-php/test +composer require utopia-php/tests ``` ## Requirements @@ -31,7 +31,7 @@ Repeatedly executes a callable until it succeeds or times out. This is useful fo ```php use PHPUnit\Framework\TestCase; -use Utopia\Test\Extensions\Async; +use Utopia\Tests\Extensions\Async; class MyTest extends TestCase { @@ -66,7 +66,7 @@ class MyTest extends TestCase If you need to immediately fail the test without retrying, throw a `Critical` exception: ```php -use Utopia\Test\Extensions\Async\Exceptions\Critical; +use Utopia\Tests\Extensions\Async\Exceptions\Critical; self::assertEventually(function () use ($connection) { if ($connection->isClosed()) { diff --git a/composer.json b/composer.json index bfae5a2..41960eb 100755 --- a/composer.json +++ b/composer.json @@ -1,8 +1,8 @@ { - "name": "utopia-php/test", + "name": "utopia-php/tests", "description": "Lite & fast micro PHP test framework that is **easy to use**.", "type": "library", - "keywords": ["php","framework", "upf", "utopia", "test"], + "keywords": ["php","framework", "upf", "utopia", "tests"], "license": "MIT", "minimum-stability": "stable", "scripts": { @@ -18,15 +18,15 @@ } ], "autoload": { - "psr-4": {"Utopia\\Test\\": "src/Test"} + "psr-4": {"Utopia\\Tests\\": "src/Tests"} }, "require": { "php": ">=8.3" }, "require-dev": { + "phpstan/phpstan": "2.0.*", "phpunit/phpunit": "12.4.*", - "laravel/pint": "1.25.*", - "phpstan/phpstan": "2.0.*" + "laravel/pint": "1.25.*" }, "config": { "allow-plugins": { diff --git a/src/Test/Extensions/Async.php b/src/Tests/Extensions/Async.php similarity index 89% rename from src/Test/Extensions/Async.php rename to src/Tests/Extensions/Async.php index d9f9d80..3e8a825 100644 --- a/src/Test/Extensions/Async.php +++ b/src/Tests/Extensions/Async.php @@ -1,9 +1,9 @@