Skip to content

Commit 0358afa

Browse files
committed
Merge branch 'new' into development
2 parents 19ba012 + d4c0002 commit 0358afa

File tree

6 files changed

+22
-19
lines changed

6 files changed

+22
-19
lines changed

.github/workflows/tests.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
vendor/bin/phpstan analyse -vvv
4949

5050
- name: PHPUnit
51-
run: vendor/bin/phpunit --verbose
51+
run: vendor/bin/phpunit
5252

5353
- name: Upload coverage results to Coveralls
5454
env:
@@ -59,14 +59,14 @@ jobs:
5959
composer global require php-coveralls/php-coveralls
6060
php-coveralls --coverage_clover=build/logs/clover.xml -v
6161
62-
tests-last:
62+
tests-latest:
6363
runs-on: ubuntu-22.04
6464
timeout-minutes: 10
6565

6666
strategy:
6767
fail-fast: true
6868

69-
name: PHP 8.2 - Last
69+
name: PHP Latest
7070

7171
steps:
7272
- name: Checkout
@@ -75,7 +75,7 @@ jobs:
7575
- name: Setup PHP
7676
uses: shivammathur/setup-php@v2
7777
with:
78-
php-version: 8.2
78+
php-version: latest
7979
tools: composer
8080
coverage: xdebug
8181

@@ -84,4 +84,4 @@ jobs:
8484
composer update
8585

8686
- name: PHPUnit
87-
run: vendor/bin/phpunit --verbose
87+
run: vendor/bin/phpunit

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ build/
44
raw-tests/
55
vendor/
66
.php-cs-fixer.cache
7+
.phpunit.cache
78
.phpunit.result.cache
89
composer.lock
910
composer.phar

.gitlab-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ test:php:
3030
- build/docs/
3131
coverage: '/^\s*Lines:\s*\d+.\d+\%/'
3232

33-
test:php-last:
34-
image: registry.gitlab.com/aplus-framework/images/base:3
33+
test:php-latest:
34+
image: registry.gitlab.com/aplus-framework/images/base:latest
3535
stage: test
3636
timeout: 10 minutes
3737
cache:

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"jetbrains/phpstorm-attributes": "^1.0",
4646
"phpmd/phpmd": "^2.13",
4747
"phpstan/phpstan": "^1.9",
48-
"phpunit/phpunit": "^9.5"
48+
"phpunit/phpunit": "^10.5"
4949
},
5050
"minimum-stability": "dev",
5151
"prefer-stable": true,

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ services:
77
volumes:
88
- .:/package
99
tty: true
10-
package-last:
11-
image: registry.gitlab.com/aplus-framework/images/package:3
12-
container_name: package-validation-last
10+
package-latest:
11+
image: registry.gitlab.com/aplus-framework/images/package:latest
12+
container_name: package-validation-latest
1313
working_dir: /package
1414
volumes:
1515
- .:/package

phpunit.xml.dist

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
3-
bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true"
4-
convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false"
5-
stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false"
6-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
7-
<coverage processUncoveredFiles="true">
8-
<include>
9-
<directory suffix=".php">src</directory>
10-
</include>
3+
bootstrap="vendor/autoload.php" colors="true" stopOnError="false" stopOnFailure="false"
4+
stopOnIncomplete="false" stopOnSkipped="false"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
6+
cacheDirectory=".phpunit.cache">
7+
<coverage>
118
<report>
129
<clover outputFile="build/coverage/clover.xml"/>
1310
<html outputDirectory="build/coverage"/>
@@ -18,4 +15,9 @@
1815
<directory suffix="Test.php">tests</directory>
1916
</testsuite>
2017
<logging/>
18+
<source>
19+
<include>
20+
<directory suffix=".php">src</directory>
21+
</include>
22+
</source>
2123
</phpunit>

0 commit comments

Comments
 (0)