Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
timacdonald committed Feb 17, 2023
1 parent 6a5f45d commit 39246dc
Showing 5 changed files with 28 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -94,6 +94,10 @@ jobs:
if: ${{ matrix.php == 8.1 && matrix.prefer == 'prefer-lowest' }}
run: composer require --no-update --no-scripts phpunit/phpunit:">=9.0" symfony/http-foundation:">=5.3.7" illuminate/http:">=8.62.0" nesbot/carbon:">=2.51.0"

- name: Setup PHPUnit configuration
if: matrix.phpunit == '^9.0'
run: cp --force phpunit.9.xml.dist phpunit.xml.dist

- name: Install dependencies
run: |
composer require --no-update 'illuminate/support:${{ matrix.laravel }}' 'orchestra/testbench:${{ matrix.testbench }}'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/vendor
/composer.lock
/.phpunit.result.cache
/.phpunit.cache
/.php_cs.cache
/coverage
/infection.log
19 changes: 19 additions & 0 deletions phpunit.9.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="default">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>
10 changes: 2 additions & 8 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
executionOrder="depends,defects"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<coverage processUncoveredFiles="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" bootstrap="vendor/autoload.php" executionOrder="depends,defects" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache">
<coverage>
<include>
<directory suffix=".php">src</directory>
</include>
4 changes: 2 additions & 2 deletions vendor-bin/dev/composer.json
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@
"require": {
"friendsofphp/php-cs-fixer": "^3.6",
"infection/infection": "^0.26.4",
"orchestra/testbench": "^7.0",
"orchestra/testbench": "^8.0",
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9.5"
"phpunit/phpunit": "^10.0"
},
"config": {
"allow-plugins": {

0 comments on commit 39246dc

Please sign in to comment.