Skip to content

Commit

Permalink
Upgrade PHPUnit to 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Dec 27, 2023
1 parent 9ddc04d commit ee2410c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
extensions: ${{ env.extensions }}
ini-values: ${{ env.ini }}
coverage: pcov
tools: phpunit:9.5.26, psalm:5.15.0
tools: phpunit:10.5.2, psalm:5.15.0

- name: Setup problem matchers
run: |
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/.idea

# tests
.phpunit.result.cache
.phpunit.cache
/tests/coverage

# ignore all the vendor cruft
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"@test"
],
"fix": "php-cs-fixer fix",
"test": "phpunit --stderr",
"test": "phpunit --stderr --display-warnings",
"test:coverage": "XDEBUG_MODE=coverage phpunit --stderr --coverage-html=tests/coverage",
"zip": "composer archive --format=zip --file=dist"
}
Expand Down
14 changes: 6 additions & 8 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
<?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"

xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="tests/bootstrap.php"
convertDeprecationsToExceptions="true"
colors="true"
verbose="true"
stderr="true"
cacheDirectory=".phpunit.cache"
>

<coverage ignoreDeprecatedCodeUnits="true">
<source>
<include>
<directory>./config</directory>
<directory>./src</directory>
Expand All @@ -23,7 +19,7 @@
<file>./config/aliases.php</file>
<file>./config/setup.php</file>
</exclude>
</coverage>
</source>

<testsuites>
<testsuite name="Classes">
Expand All @@ -34,4 +30,6 @@
<php>
<ini name="memory_limit" value="2048M" />
</php>

<coverage ignoreDeprecatedCodeUnits="true" />
</phpunit>
2 changes: 1 addition & 1 deletion tests/Session/FileSessionStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function tearDown(): void
}

Dir::remove($this->root);
$this->assertDirectoryNotExists($this->root);
$this->assertDirectoryDoesNotExist($this->root);
}

/**
Expand Down
File renamed without changes.

0 comments on commit ee2410c

Please sign in to comment.