Skip to content

Commit

Permalink
Clean up test configuration
Browse files Browse the repository at this point in the history
Some changes on phpunit.xml.dist are required to run PHPUnit 10.

Signed-off-by: 💻 Eher <alexandre@eher.com.br>
  • Loading branch information
EHER committed Feb 20, 2023
1 parent 87151a4 commit 9505449
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Continous Integration
name: Continuous Integration
on: [push]

jobs:
Expand Down Expand Up @@ -26,7 +26,7 @@ jobs:
run: composer update --prefer-dist --no-progress

- name: Run code style checker
run: ./vendor/bin/phpcs
run: composer run phpcs

- name: Run tests
run: ./vendor/bin/phpunit
run: composer run test
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,14 @@
"Codelicia\\XulietaJson\\JsonValidator"
]
}
},
"scripts": {
"phpcbf": "vendor/bin/phpcbf",
"phpcs": "vendor/bin/phpcs",
"phpunit": "vendor/bin/phpunit",
"test": [
"@phpcs",
"@phpunit"
]
}
}
5 changes: 2 additions & 3 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
beStrictAboutResourceUsageDuringSmallTests="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
beStrictAboutChangesToGlobalState="true"
beStrictAboutOutputDuringTests="true"
bootstrap="./vendor/autoload.php"
verbose="true"
colors="true"
cacheDirectory=".phpunit.cache"
>
<testsuites>
<testsuite name="functional">
Expand Down

0 comments on commit 9505449

Please sign in to comment.