diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 50b1bb5..0a01b6d 100755 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,11 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip ci')" name: PHP ${{ matrix.php-versions }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} - continue-on-error: ${{ matrix.php-versions == '8.2' }} + continue-on-error: ${{ matrix.php-versions == '8.3' }} strategy: fail-fast: false matrix: - php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3'] os: [ubuntu-latest, windows-latest] steps: @@ -24,7 +24,7 @@ jobs: run: git config --system core.autocrlf false; git config --system core.eol lf - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up PHP ${{ matrix.php-versions }} uses: shivammathur/setup-php@v2 @@ -43,7 +43,7 @@ jobs: run: echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Cache dependencies - uses: actions/cache@v2.1.3 + uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} @@ -56,4 +56,4 @@ jobs: echo "vendor/autoload.php" > composer.pth - name: Run test suite - run: sh xp-run xp.unittest.TestRunner src/test/php + run: sh xp-run xp.test.Runner src/test/php diff --git a/composer.json b/composer.json index e75d890..996b857 100755 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "php" : ">=7.0.0" }, "require-dev": { - "xp-framework/unittest": "^11.0" + "xp-framework/test": "^1.0" }, "scripts": { "serve": "xp -supervise web -s de.thekid.cas.App" diff --git a/src/test/php/de/thekid/cas/unittest/EncryptionTest.php b/src/test/php/de/thekid/cas/unittest/EncryptionTest.php index b3ab2eb..c132116 100755 --- a/src/test/php/de/thekid/cas/unittest/EncryptionTest.php +++ b/src/test/php/de/thekid/cas/unittest/EncryptionTest.php @@ -2,7 +2,7 @@ use de\thekid\cas\Encryption; use lang\FormatException; -use unittest\{Assert, Test, Expect, Values}; +use test\{Assert, Before, Expect, Test, Values}; use util\{Random, Secret}; class EncryptionTest { diff --git a/src/test/php/de/thekid/cas/unittest/HandlerTest.php b/src/test/php/de/thekid/cas/unittest/HandlerTest.php index 9cb2a3d..06f9be2 100755 --- a/src/test/php/de/thekid/cas/unittest/HandlerTest.php +++ b/src/test/php/de/thekid/cas/unittest/HandlerTest.php @@ -1,6 +1,6 @@