diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ebb9ec..34afc81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,9 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Added - Compatibility with PHP 8.3 +### Changed +- Namespace from `Brotkrueml\JobRouterClient` to `JobRouter\AddOn\RestClient` + ## [2.0.0] - 2023-02-28 ### Added diff --git a/composer.json b/composer.json index 945816e..4657cc8 100644 --- a/composer.json +++ b/composer.json @@ -43,12 +43,12 @@ }, "autoload": { "psr-4": { - "Brotkrueml\\JobRouterClient\\": "src/" + "JobRouter\\AddOn\\RestClient\\": "src/" } }, "autoload-dev": { "psr-4": { - "Brotkrueml\\JobRouterClient\\Tests\\": "tests/" + "JobRouter\\AddOn\\RestClient\\Tests\\": "tests/" } }, "config": { diff --git a/docs/api/authenticationexception.rst b/docs/api/authenticationexception.rst index cd769ac..c5c034f 100644 --- a/docs/api/authenticationexception.rst +++ b/docs/api/authenticationexception.rst @@ -6,6 +6,6 @@ Exception\\AuthenticationException ================================== -.. php:class:: final class Brotkrueml\JobRouterClient\Exception\AuthenticationException +.. php:class:: final class JobRouter\AddOn\RestClient\Exception\AuthenticationException This exception is thrown if the authentication does not succeed. diff --git a/docs/api/clientconfiguration.rst b/docs/api/clientconfiguration.rst index 5b8a42a..48c70de 100644 --- a/docs/api/clientconfiguration.rst +++ b/docs/api/clientconfiguration.rst @@ -6,7 +6,7 @@ Configuration\\ClientConfiguration ================================== -.. php:class:: final class Brotkrueml\JobRouterClient\Configuration\ClientConfiguration +.. php:class:: final class JobRouter\AddOn\RestClient\Configuration\ClientConfiguration Immutable value object that represents the configuration for a RestClient. @@ -59,7 +59,7 @@ Usage Example :: ` diff --git a/docs/api/clientfactory.rst b/docs/api/clientfactory.rst index ce5ed5d..049bdc7 100644 --- a/docs/api/clientfactory.rst +++ b/docs/api/clientfactory.rst @@ -6,7 +6,7 @@ Client\\ClientFactory ===================== -.. php:class:: final class Brotkrueml\JobRouterClient\Client\ClientFactory +.. php:class:: final class JobRouter\AddOn\RestClient\Client\ClientFactory Factory for instantiating the rest client and the client decorators. diff --git a/docs/api/clientinterface.rst b/docs/api/clientinterface.rst index aae1654..a49744c 100644 --- a/docs/api/clientinterface.rst +++ b/docs/api/clientinterface.rst @@ -6,7 +6,7 @@ Client\\ClientInterface ======================= -.. php:class:: interface Brotkrueml\JobRouterClient\Client\ClientInterface +.. php:class:: interface JobRouter\AddOn\RestClient\Client\ClientInterface Interface for a REST client. diff --git a/docs/api/clientoptions.rst b/docs/api/clientoptions.rst index dfd4770..dcd8342 100644 --- a/docs/api/clientoptions.rst +++ b/docs/api/clientoptions.rst @@ -6,7 +6,7 @@ Configuration\\ClientOptions ============================ -.. php:class:: final class Brotkrueml\JobRouterClient\Configuration\ClientOptions +.. php:class:: final class JobRouter\AddOn\RestClient\Configuration\ClientOptions Immutable value object that represents the client options which is assigned to a :ref:`client configuration `. @@ -27,8 +27,8 @@ Usage Example :: ` @@ -41,11 +41,11 @@ Usage Example :: ` objects. @@ -39,7 +39,7 @@ Usage Example :: ` @@ -41,11 +41,11 @@ Usage Example :: `. diff --git a/docs/api/restclient.rst b/docs/api/restclient.rst index e58183d..8d24ba4 100644 --- a/docs/api/restclient.rst +++ b/docs/api/restclient.rst @@ -6,7 +6,7 @@ Client\\RestClient ================== -.. php:class:: final class Brotkrueml\JobRouterClient\Client\RestClient +.. php:class:: final class JobRouter\AddOn\RestClient\Client\RestClient :implements: :ref:`Brotkrueml\\JobRouterClient\\Client\\ClientInterface ` @@ -43,8 +43,8 @@ Usage Example :: `:: diff --git a/src/Resource/JobRouterSystem.php b/src/Resource/JobRouterSystem.php index 7f0ec51..a09cdf7 100644 --- a/src/Resource/JobRouterSystem.php +++ b/src/Resource/JobRouterSystem.php @@ -3,18 +3,16 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Resource; +namespace JobRouter\AddOn\RestClient\Resource; -use Brotkrueml\JobRouterClient\Exception\InvalidUrlException; +use JobRouter\AddOn\RestClient\Exception\InvalidUrlException; /** * Value object that represents a JobRouter system diff --git a/tests/Unit/Client/ClientDecoratorTest.php b/tests/Unit/Client/ClientDecoratorTest.php index 0bd1dd2..88ebd83 100644 --- a/tests/Unit/Client/ClientDecoratorTest.php +++ b/tests/Unit/Client/ClientDecoratorTest.php @@ -3,19 +3,17 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Client; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Client; -use Brotkrueml\JobRouterClient\Client\ClientDecorator; -use Brotkrueml\JobRouterClient\Client\ClientInterface; +use JobRouter\AddOn\RestClient\Client\ClientDecorator; +use JobRouter\AddOn\RestClient\Client\ClientInterface; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Client/ClientFactoryTest.php b/tests/Unit/Client/ClientFactoryTest.php index 1e409e9..395fd2b 100644 --- a/tests/Unit/Client/ClientFactoryTest.php +++ b/tests/Unit/Client/ClientFactoryTest.php @@ -3,24 +3,22 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Client; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Client; -use Brotkrueml\JobRouterClient\Client\ClientFactory; -use Brotkrueml\JobRouterClient\Client\DocumentsClientDecorator; -use Brotkrueml\JobRouterClient\Client\IncidentsClientDecorator; -use Brotkrueml\JobRouterClient\Client\RestClient; -use Brotkrueml\JobRouterClient\Configuration\ClientConfiguration; use donatj\MockWebServer\MockWebServer; use donatj\MockWebServer\Response; +use JobRouter\AddOn\RestClient\Client\ClientFactory; +use JobRouter\AddOn\RestClient\Client\DocumentsClientDecorator; +use JobRouter\AddOn\RestClient\Client\IncidentsClientDecorator; +use JobRouter\AddOn\RestClient\Client\RestClient; +use JobRouter\AddOn\RestClient\Configuration\ClientConfiguration; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Client/DocumentsClientDecoratorTest.php b/tests/Unit/Client/DocumentsClientDecoratorTest.php index 6152370..de90f8d 100644 --- a/tests/Unit/Client/DocumentsClientDecoratorTest.php +++ b/tests/Unit/Client/DocumentsClientDecoratorTest.php @@ -3,21 +3,19 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Client; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Client; -use Brotkrueml\JobRouterClient\Client\ClientInterface; -use Brotkrueml\JobRouterClient\Client\DocumentsClientDecorator; -use Brotkrueml\JobRouterClient\Model\Document; -use Brotkrueml\JobRouterClient\Resource\FileInterface; +use JobRouter\AddOn\RestClient\Client\ClientInterface; +use JobRouter\AddOn\RestClient\Client\DocumentsClientDecorator; +use JobRouter\AddOn\RestClient\Model\Document; +use JobRouter\AddOn\RestClient\Resource\FileInterface; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\MockObject\MockObject; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Client/IncidentsClientDecoratorTest.php b/tests/Unit/Client/IncidentsClientDecoratorTest.php index 68a3da3..a6a7916 100644 --- a/tests/Unit/Client/IncidentsClientDecoratorTest.php +++ b/tests/Unit/Client/IncidentsClientDecoratorTest.php @@ -3,22 +3,20 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Client; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Client; -use Brotkrueml\JobRouterClient\Client\ClientInterface; -use Brotkrueml\JobRouterClient\Client\IncidentsClientDecorator; -use Brotkrueml\JobRouterClient\Enumerations\Priority; -use Brotkrueml\JobRouterClient\Model\Incident; -use Brotkrueml\JobRouterClient\Resource\FileInterface; +use JobRouter\AddOn\RestClient\Client\ClientInterface; +use JobRouter\AddOn\RestClient\Client\IncidentsClientDecorator; +use JobRouter\AddOn\RestClient\Enumerations\Priority; +use JobRouter\AddOn\RestClient\Model\Incident; +use JobRouter\AddOn\RestClient\Resource\FileInterface; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\MockObject\MockObject; diff --git a/tests/Unit/Client/RestClientTest.php b/tests/Unit/Client/RestClientTest.php index 0734ac0..2482a04 100644 --- a/tests/Unit/Client/RestClientTest.php +++ b/tests/Unit/Client/RestClientTest.php @@ -3,26 +3,24 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Client; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Client; -use Brotkrueml\JobRouterClient\Client\RestClient; -use Brotkrueml\JobRouterClient\Configuration\ClientConfiguration; -use Brotkrueml\JobRouterClient\Configuration\ClientOptions; -use Brotkrueml\JobRouterClient\Exception\AuthenticationException; -use Brotkrueml\JobRouterClient\Exception\HttpException; -use Brotkrueml\JobRouterClient\Exception\RestClientException; -use Brotkrueml\JobRouterClient\Resource\FileInterface; use donatj\MockWebServer\MockWebServer; use donatj\MockWebServer\Response; +use JobRouter\AddOn\RestClient\Client\RestClient; +use JobRouter\AddOn\RestClient\Configuration\ClientConfiguration; +use JobRouter\AddOn\RestClient\Configuration\ClientOptions; +use JobRouter\AddOn\RestClient\Exception\AuthenticationException; +use JobRouter\AddOn\RestClient\Exception\HttpException; +use JobRouter\AddOn\RestClient\Exception\RestClientException; +use JobRouter\AddOn\RestClient\Resource\FileInterface; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Configuration/ClientConfigurationTest.php b/tests/Unit/Configuration/ClientConfigurationTest.php index fbadcb7..2a4c440 100644 --- a/tests/Unit/Configuration/ClientConfigurationTest.php +++ b/tests/Unit/Configuration/ClientConfigurationTest.php @@ -3,20 +3,18 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Configuration; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Configuration; -use Brotkrueml\JobRouterClient\Configuration\ClientConfiguration; -use Brotkrueml\JobRouterClient\Configuration\ClientOptions; -use Brotkrueml\JobRouterClient\Exception\InvalidConfigurationException; +use JobRouter\AddOn\RestClient\Configuration\ClientConfiguration; +use JobRouter\AddOn\RestClient\Configuration\ClientOptions; +use JobRouter\AddOn\RestClient\Exception\InvalidConfigurationException; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Configuration/ClientOptionsTest.php b/tests/Unit/Configuration/ClientOptionsTest.php index c04f5d4..1cb8078 100644 --- a/tests/Unit/Configuration/ClientOptionsTest.php +++ b/tests/Unit/Configuration/ClientOptionsTest.php @@ -3,18 +3,16 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Configuration; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Configuration; -use Brotkrueml\JobRouterClient\Configuration\ClientOptions; +use JobRouter\AddOn\RestClient\Configuration\ClientOptions; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Exception/AuthenticationExceptionTest.php b/tests/Unit/Exception/AuthenticationExceptionTest.php index b3207a7..84e4915 100644 --- a/tests/Unit/Exception/AuthenticationExceptionTest.php +++ b/tests/Unit/Exception/AuthenticationExceptionTest.php @@ -3,19 +3,17 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Exception; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Exception; -use Brotkrueml\JobRouterClient\Configuration\ClientConfiguration; -use Brotkrueml\JobRouterClient\Exception\AuthenticationException; +use JobRouter\AddOn\RestClient\Configuration\ClientConfiguration; +use JobRouter\AddOn\RestClient\Exception\AuthenticationException; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Exception/HttpExceptionTest.php b/tests/Unit/Exception/HttpExceptionTest.php index a3ae4bc..88d9098 100644 --- a/tests/Unit/Exception/HttpExceptionTest.php +++ b/tests/Unit/Exception/HttpExceptionTest.php @@ -3,19 +3,17 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Exception; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Exception; -use Brotkrueml\JobRouterClient\Exception\HttpException; use Buzz\Exception\ClientException; +use JobRouter\AddOn\RestClient\Exception\HttpException; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Exception/InvalidPoolNumberExceptionTest.php b/tests/Unit/Exception/InvalidPoolNumberExceptionTest.php index 462bbd9..29310d6 100644 --- a/tests/Unit/Exception/InvalidPoolNumberExceptionTest.php +++ b/tests/Unit/Exception/InvalidPoolNumberExceptionTest.php @@ -3,18 +3,16 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Exception; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Exception; -use Brotkrueml\JobRouterClient\Exception\InvalidPoolNumberException; +use JobRouter\AddOn\RestClient\Exception\InvalidPoolNumberException; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Exception/InvalidStepNumberExceptionTest.php b/tests/Unit/Exception/InvalidStepNumberExceptionTest.php index 36610dc..a90730f 100644 --- a/tests/Unit/Exception/InvalidStepNumberExceptionTest.php +++ b/tests/Unit/Exception/InvalidStepNumberExceptionTest.php @@ -3,18 +3,16 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Exception; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Exception; -use Brotkrueml\JobRouterClient\Exception\InvalidStepNumberException; +use JobRouter\AddOn\RestClient\Exception\InvalidStepNumberException; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Mapper/RouteContentTypeMapperTest.php b/tests/Unit/Mapper/RouteContentTypeMapperTest.php index a9aac3b..8fdb1a4 100644 --- a/tests/Unit/Mapper/RouteContentTypeMapperTest.php +++ b/tests/Unit/Mapper/RouteContentTypeMapperTest.php @@ -3,18 +3,16 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Mapper; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Mapper; -use Brotkrueml\JobRouterClient\Mapper\RouteContentTypeMapper; +use JobRouter\AddOn\RestClient\Mapper\RouteContentTypeMapper; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Middleware/AuthorisationMiddlewareTest.php b/tests/Unit/Middleware/AuthorisationMiddlewareTest.php index 5aae2e2..79fe405 100644 --- a/tests/Unit/Middleware/AuthorisationMiddlewareTest.php +++ b/tests/Unit/Middleware/AuthorisationMiddlewareTest.php @@ -3,18 +3,16 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Middleware; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Middleware; -use Brotkrueml\JobRouterClient\Middleware\AuthorisationMiddleware; +use JobRouter\AddOn\RestClient\Middleware\AuthorisationMiddleware; use Nyholm\Psr7\Request; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Middleware/UserAgentMiddlewareTest.php b/tests/Unit/Middleware/UserAgentMiddlewareTest.php index e4cd802..fdb591a 100644 --- a/tests/Unit/Middleware/UserAgentMiddlewareTest.php +++ b/tests/Unit/Middleware/UserAgentMiddlewareTest.php @@ -3,19 +3,17 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Middleware; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Middleware; -use Brotkrueml\JobRouterClient\Information\Version; -use Brotkrueml\JobRouterClient\Middleware\UserAgentMiddleware; +use JobRouter\AddOn\RestClient\Information\Version; +use JobRouter\AddOn\RestClient\Middleware\UserAgentMiddleware; use Nyholm\Psr7\Request; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Model/DocumentTest.php b/tests/Unit/Model/DocumentTest.php index 299769c..7155ff2 100644 --- a/tests/Unit/Model/DocumentTest.php +++ b/tests/Unit/Model/DocumentTest.php @@ -3,20 +3,18 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Model; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Model; -use Brotkrueml\JobRouterClient\Model\Document; -use Brotkrueml\JobRouterClient\Resource\FileInterface; -use Brotkrueml\JobRouterClient\Resource\FileStorage; +use JobRouter\AddOn\RestClient\Model\Document; +use JobRouter\AddOn\RestClient\Resource\FileInterface; +use JobRouter\AddOn\RestClient\Resource\FileStorage; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Model/IncidentTest.php b/tests/Unit/Model/IncidentTest.php index 04649c4..79b9cab 100644 --- a/tests/Unit/Model/IncidentTest.php +++ b/tests/Unit/Model/IncidentTest.php @@ -3,22 +3,20 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Model; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Model; -use Brotkrueml\JobRouterClient\Enumerations\Priority; -use Brotkrueml\JobRouterClient\Exception\InvalidPoolNumberException; -use Brotkrueml\JobRouterClient\Exception\InvalidStepNumberException; -use Brotkrueml\JobRouterClient\Model\Incident; -use Brotkrueml\JobRouterClient\Resource\FileInterface; +use JobRouter\AddOn\RestClient\Enumerations\Priority; +use JobRouter\AddOn\RestClient\Exception\InvalidPoolNumberException; +use JobRouter\AddOn\RestClient\Exception\InvalidStepNumberException; +use JobRouter\AddOn\RestClient\Model\Incident; +use JobRouter\AddOn\RestClient\Resource\FileInterface; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Resource/FileStorageTest.php b/tests/Unit/Resource/FileStorageTest.php index 3dbda46..0c607c9 100644 --- a/tests/Unit/Resource/FileStorageTest.php +++ b/tests/Unit/Resource/FileStorageTest.php @@ -3,19 +3,17 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Resource; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Resource; -use Brotkrueml\JobRouterClient\Resource\FileInterface; -use Brotkrueml\JobRouterClient\Resource\FileStorage; +use JobRouter\AddOn\RestClient\Resource\FileInterface; +use JobRouter\AddOn\RestClient\Resource\FileStorage; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Resource/FileTest.php b/tests/Unit/Resource/FileTest.php index 37e8fce..c731e0a 100644 --- a/tests/Unit/Resource/FileTest.php +++ b/tests/Unit/Resource/FileTest.php @@ -3,20 +3,18 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Resource; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Resource; -use Brotkrueml\JobRouterClient\Exception\InvalidResourceException; -use Brotkrueml\JobRouterClient\Resource\File; -use Brotkrueml\JobRouterClient\Resource\FileInterface; +use JobRouter\AddOn\RestClient\Exception\InvalidResourceException; +use JobRouter\AddOn\RestClient\Resource\File; +use JobRouter\AddOn\RestClient\Resource\FileInterface; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Resource/JobRouterSystemTest.php b/tests/Unit/Resource/JobRouterSystemTest.php index 39a173a..f2f8506 100644 --- a/tests/Unit/Resource/JobRouterSystemTest.php +++ b/tests/Unit/Resource/JobRouterSystemTest.php @@ -3,19 +3,17 @@ declare(strict_types=1); /* - * This file is part of the JobRouter Client. - * https://github.com/brotkrueml/jobrouter-client - * - * Copyright (c) 2019-2023 Chris Müller + * This file is part of the JobRouter REST Client. + * https://github.com/jobrouter/php-rest-client * * For the full copyright and license information, please view the * LICENSE.txt file that was distributed with this source code. */ -namespace Brotkrueml\JobRouterClient\Tests\Unit\Resource; +namespace JobRouter\AddOn\RestClient\Tests\Unit\Resource; -use Brotkrueml\JobRouterClient\Exception\InvalidUrlException; -use Brotkrueml\JobRouterClient\Resource\JobRouterSystem; +use JobRouter\AddOn\RestClient\Exception\InvalidUrlException; +use JobRouter\AddOn\RestClient\Resource\JobRouterSystem; use PHPUnit\Framework\Attributes\DataProvider; use PHPUnit\Framework\Attributes\Test; use PHPUnit\Framework\TestCase;