Skip to content

Commit

Permalink
tests: upgrade to phpunit 10
Browse files Browse the repository at this point in the history
  • Loading branch information
lindyhopchris committed Feb 9, 2024
1 parent 1512f51 commit 92f5d4c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
vendor/
composer.lock
.phpunit.result.cache
.phpunit.cache/
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"laravel-json-api/neomerx-json-api": "^5.0.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5.28"
"phpunit/phpunit": "^10.5"
},
"autoload": {
"psr-4": {
Expand Down
28 changes: 14 additions & 14 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="false"
beStrictAboutTestsThatDoNotTestAnything="true"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
convertDeprecationsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
failOnWarning="true"
failOnDeprecation="true"
failOnNotice="true"
>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<coverage/>
<testsuites>
<testsuite name="Unit">
<directory suffix="Test.php">./tests/Unit/</directory>
Expand All @@ -31,4 +26,9 @@
<php>
<ini name="error_reporting" value="E_ALL"/>
</php>
</phpunit>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>
4 changes: 2 additions & 2 deletions tests/Unit/Schema/SchemaFieldsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class SchemaFieldsTest extends TestCase
/**
* @return array
*/
public function includePathProvider(): array
public static function includePathProvider(): array
{
return [
[
Expand Down Expand Up @@ -104,7 +104,7 @@ public function testIsRelationshipRequested(
/**
* @return array|array[]
*/
public function fieldProvider(): array
public static function fieldProvider(): array
{
return [
[
Expand Down

0 comments on commit 92f5d4c

Please sign in to comment.