From 5d54d8cd6b9c5c4a9a20525fc854e14b656cf12a Mon Sep 17 00:00:00 2001 From: jdrieghe Date: Fri, 26 Nov 2021 13:48:06 +0100 Subject: [PATCH 1/2] Rename references to old url with new .com url --- README.md | 2 +- src/HtaccessClient.php | 2 +- tests/HtaccessClientTest.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5a0348a..34993cf 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![License](https://poser.pugx.org/madewithlove/htaccess-api-client/license)](https://packagist.org/packages/madewithlove/htaccess-api-client) [![codecov](https://codecov.io/gh/madewithlove/htaccess-api-client/branch/main/graph/badge.svg)](https://codecov.io/gh/madewithlove/htaccess-api-client) -This is an API client to interact with the [Htaccess tester](https://htaccess.madewithlove.be/). +This is an API client to interact with the [Htaccess tester](https://htaccess.madewithlove.com/). ### Installation diff --git a/src/HtaccessClient.php b/src/HtaccessClient.php index f2271b1..84e4912 100644 --- a/src/HtaccessClient.php +++ b/src/HtaccessClient.php @@ -129,7 +129,7 @@ private function request(string $method, string $endpoint = '', array $requestDa { $request = $this->requestFactory->createServerRequest( $method, - 'https://htaccess.madewithlove.be/api' . $endpoint + 'https://htaccess.madewithlove.com/api' . $endpoint ); /** @var string $requestBody */ diff --git a/tests/HtaccessClientTest.php b/tests/HtaccessClientTest.php index f3cf670..b7feaad 100644 --- a/tests/HtaccessClientTest.php +++ b/tests/HtaccessClientTest.php @@ -206,7 +206,7 @@ public function it can share a test run(): void ); $this->assertStringStartsWith( - 'https://htaccess.madewithlove.be', + 'https://htaccess.madewithlove.com', $response->getShareUrl() ); $this->assertMatchesRegularExpression( @@ -253,7 +253,7 @@ public function it can share a test run with a referer(): void ); $this->assertStringStartsWith( - 'https://htaccess.madewithlove.be', + 'https://htaccess.madewithlove.com', $response->getShareUrl() ); $this->assertMatchesRegularExpression( @@ -286,7 +286,7 @@ public function it can share a test run with a server name(): void ); $this->assertStringStartsWith( - 'https://htaccess.madewithlove.be', + 'https://htaccess.madewithlove.com', $response->getShareUrl() ); $this->assertMatchesRegularExpression( From a425795768e955109a544be0a9ab979dfa7dec36 Mon Sep 17 00:00:00 2001 From: jdrieghe Date: Fri, 26 Nov 2021 13:48:22 +0100 Subject: [PATCH 2/2] Add composer scripts for QA tooling --- composer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/composer.json b/composer.json index f25b1b3..a19a440 100644 --- a/composer.json +++ b/composer.json @@ -20,5 +20,9 @@ "infection/infection": "^0.25", "phpstan/phpstan": "^1.0.0", "php-http/guzzle7-adapter": "^1.0" + }, + "scripts": { + "test": "phpunit", + "stan": "phpstan analyse" } }