diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 74e375a..021bc95 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: operating-system: [ubuntu-20.04] - php-versions: ['7.4', '8.0', '8.1', '8.2'] + php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3'] steps: - name: Set default PHP version ${{ matrix.php-versions }} @@ -29,7 +29,7 @@ jobs: - name: Cache Composer packages id: composer-cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: vendor key: ${{ runner.os }}-php${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }} @@ -38,7 +38,7 @@ jobs: - name: Install dependencies if: steps.composer-cache.outputs.cache-hit != 'true' - run: composer install --prefer-dist --no-progress --no-suggest + run: composer install --prefer-dist --no-progress - name: Prepare for Quality run: /bin/sh -c 'mkdir -p ${{ github.workspace }}/build/logs && touch ${{ github.workspace }}/build/logs/checkstyle.xml' @@ -47,7 +47,7 @@ jobs: run: php -dxdebug.mode=coverage ${{ github.workspace }}/vendor/bin/phpunit - name: Publish code coverage - if: ${{ matrix.php-versions == '8.1' }} + if: ${{ matrix.php-versions == '8.3' }} uses: paambaati/codeclimate-action@v3.0.0 env: CC_TEST_REPORTER_ID: aa35d8bb9e77ff095a71b1b8c71888fcb4ae153d3a0c29f1e637a8af514feb7e diff --git a/tests/ClientTest.php b/tests/ClientTest.php index 48c7d8a..eca2169 100644 --- a/tests/ClientTest.php +++ b/tests/ClientTest.php @@ -154,7 +154,7 @@ public function testClientObjectResponse() ]); $this->assertIsObject($response); - $this->assertObjectHasAttribute('foo', $response); + $this->assertTrue(property_exists($response, 'foo')); } public function testBasicClientNoAppKey()