diff --git a/.github/workflows/publish-packagist.yml b/.github/workflows/publish-packagist.yml index 522b264..95e89e3 100644 --- a/.github/workflows/publish-packagist.yml +++ b/.github/workflows/publish-packagist.yml @@ -2,6 +2,9 @@ name: Publish Packagist on: workflow_dispatch: + release: + types: [published] + jobs: publish: name: publish diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a713055..d52d2b9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.12.0" + ".": "0.13.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 9b72f67..e4370fd 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 89 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/testspotify%2Fspotted-7ac9fe2ee73e38b2892f0393435f2d3a275d04b1d0728708382dd752da1d44de.yml -openapi_spec_hash: 6be3d4faa079ee82335208bec39c917a +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/testspotify%2Fspotted-3ba45faf550c5b93f0307503d17c023c0e732e13835821995c97b2661af26f11.yml +openapi_spec_hash: 3232d211ced286eec6129772a2ef5105 config_hash: 16586ae58a63cb436257eedd650df8e8 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6315667..57b8e05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # Changelog +## 0.13.0 (2026-03-06) + +Full Changelog: [v0.12.0...v0.13.0](https://github.com/cjavdev/spotted-php/compare/v0.12.0...v0.13.0) + +### Features + +* **api:** api update ([44f2be6](https://github.com/cjavdev/spotted-php/commit/44f2be641a2a3c86e3c72bb345fe27ab3bf3aa33)) + + +### Chores + +* **internal:** codegen related update ([d32065b](https://github.com/cjavdev/spotted-php/commit/d32065be8c54bd914bb5652c08845194c78f7b51)) +* **internal:** remove mock server code ([c89e96e](https://github.com/cjavdev/spotted-php/commit/c89e96e245833553cd3c1226e10dc4c4d6560405)) +* **internal:** upgrade phpunit ([5a917a9](https://github.com/cjavdev/spotted-php/commit/5a917a93c7185783343136a94a4f813a1d6cc314)) +* **release:** add packagist trigger on published release ([9706875](https://github.com/cjavdev/spotted-php/commit/9706875ef252a589e23bc9654b31b5aca31796c5)) +* **test:** update skip reason message ([89b8ccd](https://github.com/cjavdev/spotted-php/commit/89b8ccd214092bea1cb3673b85a3611bcef8857a)) +* update mock server docs ([6dc2caa](https://github.com/cjavdev/spotted-php/commit/6dc2caae48c6beebc812e376f9a4fd16acccc7a4)) + ## 0.12.0 (2026-02-14) Full Changelog: [v0.11.0...v0.12.0](https://github.com/cjavdev/spotted-php/compare/v0.11.0...v0.12.0) diff --git a/README.md b/README.md index b472d87..934dd24 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The REST API documentation can be found on [spotted.cjav.dev](https://spotted.cj ``` -composer require "cjavdev/spotted 0.12.0" +composer require "cjavdev/spotted 0.13.0" ``` diff --git a/composer.lock b/composer.lock index 3f6c209..7a5e63d 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "5fc63f7c84d94b42416689723c547f69", + "content-hash": "ffa287ea8babf60e021f37e62c6c207a", "packages": [ { "name": "php-http/discovery", @@ -194,16 +194,16 @@ "packages-dev": [ { "name": "brianium/paratest", - "version": "v7.8.4", + "version": "v7.8.5", "source": { "type": "git", "url": "https://github.com/paratestphp/paratest.git", - "reference": "130a9bf0e269ee5f5b320108f794ad03e275cad4" + "reference": "9b324c8fc319cf9728b581c7a90e1c8f6361c5e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paratestphp/paratest/zipball/130a9bf0e269ee5f5b320108f794ad03e275cad4", - "reference": "130a9bf0e269ee5f5b320108f794ad03e275cad4", + "url": "https://api.github.com/repos/paratestphp/paratest/zipball/9b324c8fc319cf9728b581c7a90e1c8f6361c5e5", + "reference": "9b324c8fc319cf9728b581c7a90e1c8f6361c5e5", "shasum": "" }, "require": { @@ -211,27 +211,27 @@ "ext-pcre": "*", "ext-reflection": "*", "ext-simplexml": "*", - "fidry/cpu-core-counter": "^1.2.0", + "fidry/cpu-core-counter": "^1.3.0", "jean85/pretty-package-versions": "^2.1.1", - "php": "~8.2.0 || ~8.3.0 || ~8.4.0", - "phpunit/php-code-coverage": "^11.0.10", + "php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0", + "phpunit/php-code-coverage": "^11.0.12", "phpunit/php-file-iterator": "^5.1.0", "phpunit/php-timer": "^7.0.1", - "phpunit/phpunit": "^11.5.24", + "phpunit/phpunit": "^11.5.46", "sebastian/environment": "^7.2.1", - "symfony/console": "^6.4.22 || ^7.3.0", - "symfony/process": "^6.4.20 || ^7.3.0" + "symfony/console": "^6.4.22 || ^7.3.4 || ^8.0.3", + "symfony/process": "^6.4.20 || ^7.3.4 || ^8.0.3" }, "require-dev": { "doctrine/coding-standard": "^12.0.0", "ext-pcov": "*", "ext-posix": "*", - "phpstan/phpstan": "^2.1.17", + "phpstan/phpstan": "^2.1.33", "phpstan/phpstan-deprecation-rules": "^2.0.3", - "phpstan/phpstan-phpunit": "^2.0.6", - "phpstan/phpstan-strict-rules": "^2.0.4", - "squizlabs/php_codesniffer": "^3.13.2", - "symfony/filesystem": "^6.4.13 || ^7.3.0" + "phpstan/phpstan-phpunit": "^2.0.11", + "phpstan/phpstan-strict-rules": "^2.0.7", + "squizlabs/php_codesniffer": "^3.13.5", + "symfony/filesystem": "^6.4.13 || ^7.3.2 || ^8.0.1" }, "bin": [ "bin/paratest", @@ -271,7 +271,7 @@ ], "support": { "issues": "https://github.com/paratestphp/paratest/issues", - "source": "https://github.com/paratestphp/paratest/tree/v7.8.4" + "source": "https://github.com/paratestphp/paratest/tree/v7.8.5" }, "funding": [ { @@ -283,7 +283,7 @@ "type": "paypal" } ], - "time": "2025-06-23T06:07:21+00:00" + "time": "2026-01-08T08:02:38+00:00" }, { "name": "clue/ndjson-react", @@ -1412,38 +1412,38 @@ }, { "name": "pestphp/pest", - "version": "v3.8.4", + "version": "v3.8.5", "source": { "type": "git", "url": "https://github.com/pestphp/pest.git", - "reference": "72cf695554420e21858cda831d5db193db102574" + "reference": "7796630eafcfd1c02660cecdde3bc6984fbf01f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pestphp/pest/zipball/72cf695554420e21858cda831d5db193db102574", - "reference": "72cf695554420e21858cda831d5db193db102574", + "url": "https://api.github.com/repos/pestphp/pest/zipball/7796630eafcfd1c02660cecdde3bc6984fbf01f4", + "reference": "7796630eafcfd1c02660cecdde3bc6984fbf01f4", "shasum": "" }, "require": { - "brianium/paratest": "^7.8.4", - "nunomaduro/collision": "^8.8.2", - "nunomaduro/termwind": "^2.3.1", + "brianium/paratest": "^7.8.5", + "nunomaduro/collision": "^8.8.3", + "nunomaduro/termwind": "^2.3.3", "pestphp/pest-plugin": "^3.0.0", "pestphp/pest-plugin-arch": "^3.1.1", "pestphp/pest-plugin-mutate": "^3.0.5", "php": "^8.2.0", - "phpunit/phpunit": "^11.5.33" + "phpunit/phpunit": "^11.5.50" }, "conflict": { "filp/whoops": "<2.16.0", - "phpunit/phpunit": ">11.5.33", + "phpunit/phpunit": ">11.5.50", "sebastian/exporter": "<6.0.0", "webmozart/assert": "<1.11.0" }, "require-dev": { "pestphp/pest-dev-tools": "^3.4.0", "pestphp/pest-plugin-type-coverage": "^3.6.1", - "symfony/process": "^7.3.0" + "symfony/process": "^7.4.4" }, "bin": [ "bin/pest" @@ -1508,7 +1508,7 @@ ], "support": { "issues": "https://github.com/pestphp/pest/issues", - "source": "https://github.com/pestphp/pest/tree/v3.8.4" + "source": "https://github.com/pestphp/pest/tree/v3.8.5" }, "funding": [ { @@ -1520,7 +1520,7 @@ "type": "github" } ], - "time": "2025-08-20T19:12:42+00:00" + "time": "2026-01-28T01:33:45+00:00" }, { "name": "pestphp/pest-plugin", @@ -2627,28 +2627,28 @@ }, { "name": "phpunit/php-file-iterator", - "version": "5.1.0", + "version": "5.1.1", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6" + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/118cfaaa8bc5aef3287bf315b6060b1174754af6", - "reference": "118cfaaa8bc5aef3287bf315b6060b1174754af6", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/2f3a64888c814fc235386b7387dd5b5ed92ad903", + "reference": "2f3a64888c814fc235386b7387dd5b5ed92ad903", "shasum": "" }, "require": { "php": ">=8.2" }, "require-dev": { - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.3" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "5.0-dev" + "dev-main": "5.1-dev" } }, "autoload": { @@ -2676,15 +2676,27 @@ "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.0" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/5.1.1" }, "funding": [ { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" } ], - "time": "2024-08-27T05:02:59+00:00" + "time": "2026-02-02T13:52:54+00:00" }, { "name": "phpunit/php-invoker", @@ -2872,16 +2884,16 @@ }, { "name": "phpunit/phpunit", - "version": "11.5.33", + "version": "11.5.50", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "5965e9ff57546cb9137c0ff6aa78cb7442b05cf6" + "reference": "fdfc727f0fcacfeb8fcb30c7e5da173125b58be3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/5965e9ff57546cb9137c0ff6aa78cb7442b05cf6", - "reference": "5965e9ff57546cb9137c0ff6aa78cb7442b05cf6", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fdfc727f0fcacfeb8fcb30c7e5da173125b58be3", + "reference": "fdfc727f0fcacfeb8fcb30c7e5da173125b58be3", "shasum": "" }, "require": { @@ -2895,17 +2907,17 @@ "phar-io/manifest": "^2.0.4", "phar-io/version": "^3.2.1", "php": ">=8.2", - "phpunit/php-code-coverage": "^11.0.10", + "phpunit/php-code-coverage": "^11.0.12", "phpunit/php-file-iterator": "^5.1.0", "phpunit/php-invoker": "^5.0.1", "phpunit/php-text-template": "^4.0.1", "phpunit/php-timer": "^7.0.1", "sebastian/cli-parser": "^3.0.2", "sebastian/code-unit": "^3.0.3", - "sebastian/comparator": "^6.3.2", + "sebastian/comparator": "^6.3.3", "sebastian/diff": "^6.0.2", "sebastian/environment": "^7.2.1", - "sebastian/exporter": "^6.3.0", + "sebastian/exporter": "^6.3.2", "sebastian/global-state": "^7.0.2", "sebastian/object-enumerator": "^6.0.1", "sebastian/type": "^5.1.3", @@ -2953,7 +2965,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.33" + "source": "https://github.com/sebastianbergmann/phpunit/tree/11.5.50" }, "funding": [ { @@ -2977,7 +2989,7 @@ "type": "tidelift" } ], - "time": "2025-08-16T05:19:02+00:00" + "time": "2026-01-27T05:59:18+00:00" }, { "name": "psr/container", @@ -3936,16 +3948,16 @@ }, { "name": "sebastian/comparator", - "version": "6.3.2", + "version": "6.3.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8" + "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/85c77556683e6eee4323e4c5468641ca0237e2e8", - "reference": "85c77556683e6eee4323e4c5468641ca0237e2e8", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", + "reference": "2c95e1e86cb8dd41beb8d502057d1081ccc8eca9", "shasum": "" }, "require": { @@ -4004,7 +4016,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", "security": "https://github.com/sebastianbergmann/comparator/security/policy", - "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.2" + "source": "https://github.com/sebastianbergmann/comparator/tree/6.3.3" }, "funding": [ { @@ -4024,7 +4036,7 @@ "type": "tidelift" } ], - "time": "2025-08-10T08:07:46+00:00" + "time": "2026-01-24T09:26:40+00:00" }, { "name": "sebastian/complexity", @@ -6668,5 +6680,5 @@ "platform-overrides": { "php": "8.3" }, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/scripts/mock b/scripts/mock deleted file mode 100755 index 0b28f6e..0000000 --- a/scripts/mock +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -set -e - -cd "$(dirname "$0")/.." - -if [[ -n "$1" && "$1" != '--'* ]]; then - URL="$1" - shift -else - URL="$(grep 'openapi_spec_url' .stats.yml | cut -d' ' -f2)" -fi - -# Check if the URL is empty -if [ -z "$URL" ]; then - echo "Error: No OpenAPI spec path/url provided or found in .stats.yml" - exit 1 -fi - -echo "==> Starting mock server with URL ${URL}" - -# Run prism mock on the given spec -if [ "$1" == "--daemon" ]; then - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" &> .prism.log & - - # Wait for server to come online - echo -n "Waiting for server" - while ! grep -q "✖ fatal\|Prism is listening" ".prism.log" ; do - echo -n "." - sleep 0.1 - done - - if grep -q "✖ fatal" ".prism.log"; then - cat .prism.log - exit 1 - fi - - echo -else - npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock "$URL" -fi diff --git a/scripts/test b/scripts/test index 4b777e0..63df137 100755 --- a/scripts/test +++ b/scripts/test @@ -4,52 +4,6 @@ set -e cd "$(dirname "$0")/.." -RED='\033[0;31m' -GREEN='\033[0;32m' -YELLOW='\033[0;33m' -NC='\033[0m' # No Color -function prism_is_running() { - curl --silent "http://localhost:4010" >/dev/null 2>&1 -} - -kill_server_on_port() { - pids=$(lsof -t -i tcp:"$1" || echo "") - if [ "$pids" != "" ]; then - kill "$pids" - echo "Stopped $pids." - fi -} - -function is_overriding_api_base_url() { - [ -n "$TEST_API_BASE_URL" ] -} - -if ! is_overriding_api_base_url && ! prism_is_running ; then - # When we exit this script, make sure to kill the background mock server process - trap 'kill_server_on_port 4010' EXIT - - # Start the dev server - ./scripts/mock --daemon -fi - -if is_overriding_api_base_url ; then - echo -e "${GREEN}✔ Running tests against ${TEST_API_BASE_URL}${NC}" - echo -elif ! prism_is_running ; then - echo -e "${RED}ERROR:${NC} The test suite will not run without a mock Prism server" - echo -e "running against your OpenAPI spec." - echo - echo -e "To run the server, pass in the path or url of your OpenAPI" - echo -e "spec to the prism command:" - echo - echo -e " \$ ${YELLOW}npm exec --package=@stainless-api/prism-cli@5.15.0 -- prism mock path/to/your.openapi.yml${NC}" - echo - - exit 1 -else - echo -e "${GREEN}✔ Mock prism server is running with your OpenAPI spec${NC}" - echo -fi exec -- ./vendor/bin/pest --colors=always diff --git a/src/Albums/AlbumBulkGetResponse/Album.php b/src/Albums/AlbumBulkGetResponse/Album.php index 76428a2..ff259d7 100644 --- a/src/Albums/AlbumBulkGetResponse/Album.php +++ b/src/Albums/AlbumBulkGetResponse/Album.php @@ -157,9 +157,7 @@ final class Album implements BaseModel public ?array $copyrights; /** - * @deprecated - * - * Known external IDs for the album + * Known external IDs for the album. */ #[Optional('external_ids')] public ?ExternalIDObject $externalIDs; diff --git a/src/Albums/AlbumGetResponse.php b/src/Albums/AlbumGetResponse.php index 1f9fa9c..279ae51 100644 --- a/src/Albums/AlbumGetResponse.php +++ b/src/Albums/AlbumGetResponse.php @@ -157,9 +157,7 @@ final class AlbumGetResponse implements BaseModel public ?array $copyrights; /** - * @deprecated - * - * Known external IDs for the album + * Known external IDs for the album. */ #[Optional('external_ids')] public ?ExternalIDObject $externalIDs; diff --git a/src/Core/Conversion.php b/src/Core/Conversion.php index d77ff5a..2b1aa9b 100644 --- a/src/Core/Conversion.php +++ b/src/Core/Conversion.php @@ -170,6 +170,37 @@ private static function tryConvert(Converter|ConverterSource|string $target, mix return $value; + case 'DateTimeInterface': + case 'DateTimeImmutable': + if (is_string($value)) { + try { + ++$state->maybe; + + return new \DateTimeImmutable($value); + } catch (\Exception) { + --$state->maybe; + } + } + + ++$state->no; + + return $value; + + case 'DateTime': + if (is_string($value)) { + try { + ++$state->maybe; + + return new \DateTime($value); + } catch (\Exception) { + --$state->maybe; + } + } + + ++$state->no; + + return $value; + default: ++$state->no; diff --git a/src/Me/Albums/AlbumListResponse/Album.php b/src/Me/Albums/AlbumListResponse/Album.php index 197190d..d1ada10 100644 --- a/src/Me/Albums/AlbumListResponse/Album.php +++ b/src/Me/Albums/AlbumListResponse/Album.php @@ -159,9 +159,7 @@ final class Album implements BaseModel public ?array $copyrights; /** - * @deprecated - * - * Known external IDs for the album + * Known external IDs for the album. */ #[Optional('external_ids')] public ?ExternalIDObject $externalIDs; diff --git a/src/TrackObject.php b/src/TrackObject.php index 845c0ed..a1c51f9 100644 --- a/src/TrackObject.php +++ b/src/TrackObject.php @@ -96,9 +96,7 @@ final class TrackObject implements BaseModel public ?bool $explicit; /** - * @deprecated - * - * Known external IDs for the track + * Known external IDs for the track. */ #[Optional('external_ids')] public ?ExternalIDObject $externalIDs; diff --git a/src/Version.php b/src/Version.php index 12785ca..633847d 100644 --- a/src/Version.php +++ b/src/Version.php @@ -5,5 +5,5 @@ namespace Spotted; // x-release-please-start-version -const VERSION = '0.12.0'; +const VERSION = '0.13.0'; // x-release-please-end diff --git a/tests/Services/AlbumsTest.php b/tests/Services/AlbumsTest.php index 4d09c75..1f124a6 100644 --- a/tests/Services/AlbumsTest.php +++ b/tests/Services/AlbumsTest.php @@ -35,7 +35,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->albums->retrieve('4aawyAB9vmqN3uQ7FjRGTy'); @@ -48,7 +48,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->albums->bulkRetrieve( @@ -63,7 +63,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->albums->bulkRetrieve( @@ -79,7 +79,7 @@ public function testBulkRetrieveWithOptionalParams(): void public function testListTracks(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->albums->listTracks('4aawyAB9vmqN3uQ7FjRGTy'); diff --git a/tests/Services/ArtistsTest.php b/tests/Services/ArtistsTest.php index 12e6779..d3f34c6 100644 --- a/tests/Services/ArtistsTest.php +++ b/tests/Services/ArtistsTest.php @@ -37,7 +37,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->artists->retrieve('0TnOYISbd1XYRBk9myaseg'); @@ -50,7 +50,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->artists->bulkRetrieve( @@ -65,7 +65,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->artists->bulkRetrieve( @@ -80,7 +80,7 @@ public function testBulkRetrieveWithOptionalParams(): void public function testListAlbums(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->artists->listAlbums('0TnOYISbd1XYRBk9myaseg'); @@ -98,7 +98,7 @@ public function testListAlbums(): void public function testListRelatedArtists(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->artists->listRelatedArtists( @@ -113,7 +113,7 @@ public function testListRelatedArtists(): void public function testTopTracks(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->artists->topTracks('0TnOYISbd1XYRBk9myaseg'); diff --git a/tests/Services/AudioAnalysisTest.php b/tests/Services/AudioAnalysisTest.php index 8085ac0..5455f0b 100644 --- a/tests/Services/AudioAnalysisTest.php +++ b/tests/Services/AudioAnalysisTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->audioAnalysis->retrieve('11dFghVXANMlKmJXsNCbNl'); diff --git a/tests/Services/AudioFeaturesTest.php b/tests/Services/AudioFeaturesTest.php index 03eb9ce..84d0b3c 100644 --- a/tests/Services/AudioFeaturesTest.php +++ b/tests/Services/AudioFeaturesTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->audioFeatures->retrieve('11dFghVXANMlKmJXsNCbNl'); @@ -46,7 +46,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->audioFeatures->bulkRetrieve( @@ -61,7 +61,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->audioFeatures->bulkRetrieve( diff --git a/tests/Services/AudiobooksTest.php b/tests/Services/AudiobooksTest.php index 101d03a..bdf0ca5 100644 --- a/tests/Services/AudiobooksTest.php +++ b/tests/Services/AudiobooksTest.php @@ -35,7 +35,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->audiobooks->retrieve('7iHfbu1YPACw6oZPAFJtqe'); @@ -48,7 +48,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->audiobooks->bulkRetrieve( @@ -63,7 +63,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->audiobooks->bulkRetrieve( @@ -79,7 +79,7 @@ public function testBulkRetrieveWithOptionalParams(): void public function testListChapters(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->audiobooks->listChapters('7iHfbu1YPACw6oZPAFJtqe'); diff --git a/tests/Services/Browse/CategoriesTest.php b/tests/Services/Browse/CategoriesTest.php index fba46e8..f1dfc54 100644 --- a/tests/Services/Browse/CategoriesTest.php +++ b/tests/Services/Browse/CategoriesTest.php @@ -35,7 +35,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->browse->categories->retrieve('dinner'); @@ -48,7 +48,7 @@ public function testRetrieve(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->browse->categories->list(); @@ -66,7 +66,7 @@ public function testList(): void public function testGetPlaylists(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->browse->categories->getPlaylists('dinner'); diff --git a/tests/Services/BrowseTest.php b/tests/Services/BrowseTest.php index 86d6fd9..512116b 100644 --- a/tests/Services/BrowseTest.php +++ b/tests/Services/BrowseTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testGetFeaturedPlaylists(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->browse->getFeaturedPlaylists(); @@ -46,7 +46,7 @@ public function testGetFeaturedPlaylists(): void public function testGetNewReleases(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->browse->getNewReleases(); diff --git a/tests/Services/ChaptersTest.php b/tests/Services/ChaptersTest.php index 68b70b1..0a86622 100644 --- a/tests/Services/ChaptersTest.php +++ b/tests/Services/ChaptersTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->chapters->retrieve('0D5wENdkdwbqlrHoaJ9g29'); @@ -46,7 +46,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->chapters->bulkRetrieve( @@ -61,7 +61,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->chapters->bulkRetrieve( diff --git a/tests/Services/EpisodesTest.php b/tests/Services/EpisodesTest.php index 0d5a6b4..2d5c107 100644 --- a/tests/Services/EpisodesTest.php +++ b/tests/Services/EpisodesTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->episodes->retrieve('512ojhOuo1ktJprKbVcKyQ'); @@ -46,7 +46,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->episodes->bulkRetrieve( @@ -61,7 +61,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->episodes->bulkRetrieve( diff --git a/tests/Services/MarketsTest.php b/tests/Services/MarketsTest.php index cfde6f1..97763c3 100644 --- a/tests/Services/MarketsTest.php +++ b/tests/Services/MarketsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->markets->list(); diff --git a/tests/Services/Me/AlbumsTest.php b/tests/Services/Me/AlbumsTest.php index 86785e2..435b182 100644 --- a/tests/Services/Me/AlbumsTest.php +++ b/tests/Services/Me/AlbumsTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->albums->list(); @@ -51,7 +51,7 @@ public function testList(): void public function testCheck(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->albums->check( @@ -66,7 +66,7 @@ public function testCheck(): void public function testCheckWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->albums->check( @@ -81,7 +81,7 @@ public function testCheckWithOptionalParams(): void public function testRemove(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->albums->remove(); @@ -94,7 +94,7 @@ public function testRemove(): void public function testSave(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->albums->save(); diff --git a/tests/Services/Me/AudiobooksTest.php b/tests/Services/Me/AudiobooksTest.php index 9a9235f..30d14c3 100644 --- a/tests/Services/Me/AudiobooksTest.php +++ b/tests/Services/Me/AudiobooksTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->audiobooks->list(); @@ -51,7 +51,7 @@ public function testList(): void public function testCheck(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->audiobooks->check( @@ -66,7 +66,7 @@ public function testCheck(): void public function testCheckWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->audiobooks->check( @@ -81,7 +81,7 @@ public function testCheckWithOptionalParams(): void public function testRemove(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->audiobooks->remove( @@ -96,7 +96,7 @@ public function testRemove(): void public function testRemoveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->audiobooks->remove( @@ -111,7 +111,7 @@ public function testRemoveWithOptionalParams(): void public function testSave(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->audiobooks->save( @@ -126,7 +126,7 @@ public function testSave(): void public function testSaveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->audiobooks->save( diff --git a/tests/Services/Me/EpisodesTest.php b/tests/Services/Me/EpisodesTest.php index 6a01887..ebe5e90 100644 --- a/tests/Services/Me/EpisodesTest.php +++ b/tests/Services/Me/EpisodesTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->episodes->list(); @@ -51,7 +51,7 @@ public function testList(): void public function testCheck(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->episodes->check( @@ -66,7 +66,7 @@ public function testCheck(): void public function testCheckWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->episodes->check( @@ -81,7 +81,7 @@ public function testCheckWithOptionalParams(): void public function testRemove(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->episodes->remove(); @@ -94,7 +94,7 @@ public function testRemove(): void public function testSave(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->episodes->save(ids: ['string']); @@ -107,7 +107,7 @@ public function testSave(): void public function testSaveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->episodes->save( diff --git a/tests/Services/Me/FollowingTest.php b/tests/Services/Me/FollowingTest.php index 21b7500..dca44cb 100644 --- a/tests/Services/Me/FollowingTest.php +++ b/tests/Services/Me/FollowingTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->following->bulkRetrieve(); @@ -45,7 +45,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->following->bulkRetrieve( @@ -62,7 +62,7 @@ public function testBulkRetrieveWithOptionalParams(): void public function testCheck(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->following->check( @@ -78,7 +78,7 @@ public function testCheck(): void public function testCheckWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->following->check( @@ -94,7 +94,7 @@ public function testCheckWithOptionalParams(): void public function testFollow(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->following->follow(ids: ['string']); @@ -107,7 +107,7 @@ public function testFollow(): void public function testFollowWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->following->follow( @@ -123,7 +123,7 @@ public function testFollowWithOptionalParams(): void public function testUnfollow(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->following->unfollow(); diff --git a/tests/Services/Me/Player/QueueTest.php b/tests/Services/Me/Player/QueueTest.php index 4bd9766..e97773c 100644 --- a/tests/Services/Me/Player/QueueTest.php +++ b/tests/Services/Me/Player/QueueTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testAdd(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->queue->add( @@ -47,7 +47,7 @@ public function testAdd(): void public function testAddWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->queue->add( @@ -63,7 +63,7 @@ public function testAddWithOptionalParams(): void public function testGet(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->queue->get(); diff --git a/tests/Services/Me/PlayerTest.php b/tests/Services/Me/PlayerTest.php index 42e518e..2ab583b 100644 --- a/tests/Services/Me/PlayerTest.php +++ b/tests/Services/Me/PlayerTest.php @@ -36,7 +36,7 @@ protected function setUp(): void public function testGetCurrentlyPlaying(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->getCurrentlyPlaying(); @@ -49,7 +49,7 @@ public function testGetCurrentlyPlaying(): void public function testGetDevices(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->getDevices(); @@ -62,7 +62,7 @@ public function testGetDevices(): void public function testGetState(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->getState(); @@ -75,7 +75,7 @@ public function testGetState(): void public function testListRecentlyPlayed(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->player->listRecentlyPlayed(); @@ -93,7 +93,7 @@ public function testListRecentlyPlayed(): void public function testPausePlayback(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->pausePlayback(); @@ -106,7 +106,7 @@ public function testPausePlayback(): void public function testSeekToPosition(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->seekToPosition(positionMs: 25000); @@ -119,7 +119,7 @@ public function testSeekToPosition(): void public function testSeekToPositionWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->seekToPosition( @@ -135,7 +135,7 @@ public function testSeekToPositionWithOptionalParams(): void public function testSetRepeatMode(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->setRepeatMode(state: 'context'); @@ -148,7 +148,7 @@ public function testSetRepeatMode(): void public function testSetRepeatModeWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->setRepeatMode( @@ -164,7 +164,7 @@ public function testSetRepeatModeWithOptionalParams(): void public function testSetVolume(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->setVolume(volumePercent: 50); @@ -177,7 +177,7 @@ public function testSetVolume(): void public function testSetVolumeWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->setVolume( @@ -193,7 +193,7 @@ public function testSetVolumeWithOptionalParams(): void public function testSkipNext(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->skipNext(); @@ -206,7 +206,7 @@ public function testSkipNext(): void public function testSkipPrevious(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->skipPrevious(); @@ -219,7 +219,7 @@ public function testSkipPrevious(): void public function testStartPlayback(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->startPlayback(); @@ -232,7 +232,7 @@ public function testStartPlayback(): void public function testToggleShuffle(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->toggleShuffle(state: true); @@ -245,7 +245,7 @@ public function testToggleShuffle(): void public function testToggleShuffleWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->toggleShuffle( @@ -261,7 +261,7 @@ public function testToggleShuffleWithOptionalParams(): void public function testTransfer(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->transfer( @@ -276,7 +276,7 @@ public function testTransfer(): void public function testTransferWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->player->transfer( diff --git a/tests/Services/Me/PlaylistsTest.php b/tests/Services/Me/PlaylistsTest.php index eedbb7c..607a361 100644 --- a/tests/Services/Me/PlaylistsTest.php +++ b/tests/Services/Me/PlaylistsTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->playlists->list(); diff --git a/tests/Services/Me/ShowsTest.php b/tests/Services/Me/ShowsTest.php index 0b695f4..144db45 100644 --- a/tests/Services/Me/ShowsTest.php +++ b/tests/Services/Me/ShowsTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->shows->list(); @@ -51,7 +51,7 @@ public function testList(): void public function testCheck(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->shows->check( @@ -66,7 +66,7 @@ public function testCheck(): void public function testCheckWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->shows->check( @@ -81,7 +81,7 @@ public function testCheckWithOptionalParams(): void public function testRemove(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->shows->remove(); @@ -94,7 +94,7 @@ public function testRemove(): void public function testSave(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->shows->save(); diff --git a/tests/Services/Me/TopTest.php b/tests/Services/Me/TopTest.php index e8c424d..494422a 100644 --- a/tests/Services/Me/TopTest.php +++ b/tests/Services/Me/TopTest.php @@ -34,7 +34,7 @@ protected function setUp(): void public function testListTopArtists(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->top->listTopArtists(); @@ -52,7 +52,7 @@ public function testListTopArtists(): void public function testListTopTracks(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->top->listTopTracks(); diff --git a/tests/Services/Me/TracksTest.php b/tests/Services/Me/TracksTest.php index ed06a4d..d1cf966 100644 --- a/tests/Services/Me/TracksTest.php +++ b/tests/Services/Me/TracksTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->me->tracks->list(); @@ -51,7 +51,7 @@ public function testList(): void public function testCheck(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->tracks->check( @@ -66,7 +66,7 @@ public function testCheck(): void public function testCheckWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->tracks->check( @@ -81,7 +81,7 @@ public function testCheckWithOptionalParams(): void public function testRemove(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->tracks->remove(); @@ -94,7 +94,7 @@ public function testRemove(): void public function testSave(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->tracks->save(ids: ['string']); @@ -107,7 +107,7 @@ public function testSave(): void public function testSaveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->tracks->save( diff --git a/tests/Services/MeTest.php b/tests/Services/MeTest.php index fa1891d..030d8bd 100644 --- a/tests/Services/MeTest.php +++ b/tests/Services/MeTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->me->retrieve(); diff --git a/tests/Services/Playlists/FollowersTest.php b/tests/Services/Playlists/FollowersTest.php index 0fdf83c..aa7698b 100644 --- a/tests/Services/Playlists/FollowersTest.php +++ b/tests/Services/Playlists/FollowersTest.php @@ -31,7 +31,7 @@ protected function setUp(): void public function testCheck(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->followers->check( @@ -46,7 +46,7 @@ public function testCheck(): void public function testFollow(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->followers->follow( @@ -61,7 +61,7 @@ public function testFollow(): void public function testUnfollow(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->followers->unfollow( diff --git a/tests/Services/Playlists/ImagesTest.php b/tests/Services/Playlists/ImagesTest.php index a919a48..cf6aaa8 100644 --- a/tests/Services/Playlists/ImagesTest.php +++ b/tests/Services/Playlists/ImagesTest.php @@ -31,7 +31,7 @@ protected function setUp(): void public function testUpdate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism doesn\'t support application/binary responses'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->images->update( @@ -47,7 +47,7 @@ public function testUpdate(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->images->list('3cEYpjA9oz9GiPac4AsH4n'); diff --git a/tests/Services/Playlists/TracksTest.php b/tests/Services/Playlists/TracksTest.php index 9b21526..f924beb 100644 --- a/tests/Services/Playlists/TracksTest.php +++ b/tests/Services/Playlists/TracksTest.php @@ -36,7 +36,7 @@ protected function setUp(): void public function testUpdate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->tracks->update( @@ -51,7 +51,7 @@ public function testUpdate(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->playlists->tracks->list('3cEYpjA9oz9GiPac4AsH4n'); @@ -69,7 +69,7 @@ public function testList(): void public function testAdd(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->tracks->add('3cEYpjA9oz9GiPac4AsH4n'); @@ -82,7 +82,7 @@ public function testAdd(): void public function testRemove(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->tracks->remove( @@ -98,7 +98,7 @@ public function testRemove(): void public function testRemoveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->tracks->remove( diff --git a/tests/Services/PlaylistsTest.php b/tests/Services/PlaylistsTest.php index fb954c5..bc84cbd 100644 --- a/tests/Services/PlaylistsTest.php +++ b/tests/Services/PlaylistsTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->retrieve('3cEYpjA9oz9GiPac4AsH4n'); @@ -45,7 +45,7 @@ public function testRetrieve(): void public function testUpdate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->playlists->update('3cEYpjA9oz9GiPac4AsH4n'); diff --git a/tests/Services/RecommendationsTest.php b/tests/Services/RecommendationsTest.php index 7744e32..04c8024 100644 --- a/tests/Services/RecommendationsTest.php +++ b/tests/Services/RecommendationsTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testGet(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->recommendations->get(); @@ -46,7 +46,7 @@ public function testGet(): void public function testListAvailableGenreSeeds(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->recommendations->listAvailableGenreSeeds(); diff --git a/tests/Services/SearchTest.php b/tests/Services/SearchTest.php index ddb70b6..e0b9bdc 100644 --- a/tests/Services/SearchTest.php +++ b/tests/Services/SearchTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testQuery(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->search->query( @@ -48,7 +48,7 @@ public function testQuery(): void public function testQueryWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->search->query( diff --git a/tests/Services/ShowsTest.php b/tests/Services/ShowsTest.php index ace899b..b52460f 100644 --- a/tests/Services/ShowsTest.php +++ b/tests/Services/ShowsTest.php @@ -35,7 +35,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->shows->retrieve('38bS44xjbVVZ3No3ByF1dJ'); @@ -48,7 +48,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->shows->bulkRetrieve( @@ -63,7 +63,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->shows->bulkRetrieve( @@ -79,7 +79,7 @@ public function testBulkRetrieveWithOptionalParams(): void public function testListEpisodes(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->shows->listEpisodes('38bS44xjbVVZ3No3ByF1dJ'); diff --git a/tests/Services/TracksTest.php b/tests/Services/TracksTest.php index 85a2dc3..7d593bc 100644 --- a/tests/Services/TracksTest.php +++ b/tests/Services/TracksTest.php @@ -33,7 +33,7 @@ protected function setUp(): void public function testRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->tracks->retrieve('11dFghVXANMlKmJXsNCbNl'); @@ -46,7 +46,7 @@ public function testRetrieve(): void public function testBulkRetrieve(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->tracks->bulkRetrieve( @@ -61,7 +61,7 @@ public function testBulkRetrieve(): void public function testBulkRetrieveWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->tracks->bulkRetrieve( diff --git a/tests/Services/Users/PlaylistsTest.php b/tests/Services/Users/PlaylistsTest.php index 1d5c9a5..a70afcd 100644 --- a/tests/Services/Users/PlaylistsTest.php +++ b/tests/Services/Users/PlaylistsTest.php @@ -34,7 +34,7 @@ protected function setUp(): void public function testCreate(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->users->playlists->create( @@ -50,7 +50,7 @@ public function testCreate(): void public function testCreateWithOptionalParams(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->users->playlists->create( @@ -69,7 +69,7 @@ public function testCreateWithOptionalParams(): void public function testList(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $page = $this->client->users->playlists->list('smedjan'); diff --git a/tests/Services/UsersTest.php b/tests/Services/UsersTest.php index 7187bcd..d58cae1 100644 --- a/tests/Services/UsersTest.php +++ b/tests/Services/UsersTest.php @@ -32,7 +32,7 @@ protected function setUp(): void public function testRetrieveProfile(): void { if (UnsupportedMockTests::$skip) { - $this->markTestSkipped('Prism tests are disabled'); + $this->markTestSkipped('Mock server tests are disabled'); } $result = $this->client->users->retrieveProfile('smedjan');