Skip to content

Commit 3b350a9

Browse files
committed
Migrate to new testing framework
1 parent d7c7048 commit 3b350a9

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
if: "!contains(github.event.head_commit.message, 'skip ci')"
1212
name: PHP ${{ matrix.php-versions }} on ${{ matrix.os }}
1313
runs-on: ${{ matrix.os }}
14-
continue-on-error: ${{ matrix.php-versions == '8.2' }}
14+
continue-on-error: ${{ matrix.php-versions == '8.3' }}
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
18+
php-versions: ['7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
1919
os: [ubuntu-latest, windows-latest]
2020

2121
steps:
@@ -24,17 +24,14 @@ jobs:
2424
run: git config --system core.autocrlf false; git config --system core.eol lf
2525

2626
- name: Checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2828

2929
- name: Set up PHP ${{ matrix.php-versions }}
3030
uses: shivammathur/setup-php@v2
3131
with:
3232
php-version: ${{ matrix.php-versions }}
3333
ini-values: date.timezone=Europe/Berlin
3434

35-
- name: Setup Problem Matchers for PHP
36-
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
37-
3835
- name: Validate composer.json and composer.lock
3936
run: composer validate
4037

@@ -57,4 +54,4 @@ jobs:
5754
echo "vendor/xp-framework/compiler/src/test/php" >> composer.pth
5855
5956
- name: Run test suite
60-
run: sh xp-run xp.unittest.TestRunner src/test/php
57+
run: sh xp-run xp.test.Runner src/test/php

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"php" : ">=7.0.0"
1212
},
1313
"require-dev" : {
14-
"xp-framework/unittest": "^11.0 | ^10.0"
14+
"xp-framework/test": "^1.0"
1515
},
1616
"autoload" : {
1717
"files" : ["src/main/php/autoload.php"]

src/test/php/lang/ast/syntax/php/unittest/IsOperatorTest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php namespace lang\ast\syntax\php\unittest;
22

33
use lang\ast\unittest\emit\EmittingTest;
4-
use unittest\{Assert, Test};
4+
use test\{Assert, Test};
55

66
class IsOperatorTest extends EmittingTest {
77

0 commit comments

Comments
 (0)