Skip to content

Commit 54a9f94

Browse files
committed
feat: add support for PHPUnit 10
1 parent 843124e commit 54a9f94

File tree

6 files changed

+20
-24
lines changed

6 files changed

+20
-24
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: true
1616
matrix:
1717
php: [8.1, 8.2]
18-
laravel: [10]
18+
testing: [4.1, 5]
1919

2020
steps:
2121
- name: Checkout Code
@@ -30,8 +30,8 @@ jobs:
3030
coverage: none
3131
ini-values: error_reporting=E_ALL
3232

33-
- name: Set Laravel Version
34-
run: composer require "illuminate/testing:^${{ matrix.laravel }}" --no-update
33+
- name: Set Testing Version
34+
run: composer require "cloudcreativity/json-api-testing:^${{ matrix.testing }}" --no-update
3535

3636
- name: Install dependencies
3737
uses: nick-fields/retry@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
vendor/
22
composer.lock
33
.phpunit.result.cache
4+
.phpunit.cache

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
All notable changes to this project will be documented in this file. This project adheres to
44
[Semantic Versioning](http://semver.org/) and [this changelog format](http://keepachangelog.com/).
55

6+
## Unreleased
7+
8+
### Added
9+
10+
- Add support for PHPUnit 10.
11+
612
## [2.0.0] - 2023-02-14
713

814
### Changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
"require": {
2626
"php": "^8.1",
2727
"ext-json": "*",
28-
"cloudcreativity/json-api-testing": "^4.1",
28+
"cloudcreativity/json-api-testing": "^4.1|^5.0",
2929
"illuminate/http": "^10.0",
3030
"illuminate/support": "^10.0",
3131
"illuminate/testing": "^10.0"
3232
},
3333
"require-dev": {
3434
"laravel/framework": "^10.0",
35-
"phpunit/phpunit": "^9.5.28"
35+
"phpunit/phpunit": "^9.5.28|^10.0.7"
3636
},
3737
"autoload": {
3838
"psr-4": {
@@ -49,7 +49,7 @@
4949
"dev-develop": "2.x-dev"
5050
}
5151
},
52-
"minimum-stability": "stable",
52+
"minimum-stability": "dev",
5353
"prefer-stable": true,
5454
"config": {
5555
"sort-packages": true

phpunit.xml

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
beStrictAboutTestsThatDoNotTestAnything="false"
6-
bootstrap="vendor/autoload.php"
7-
colors="true"
8-
convertErrorsToExceptions="true"
9-
convertNoticesToExceptions="true"
10-
convertWarningsToExceptions="true"
11-
convertDeprecationsToExceptions="true"
12-
processIsolation="false"
13-
stopOnError="false"
14-
stopOnFailure="false"
15-
verbose="true"
16-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
17-
>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
3+
beStrictAboutTestsThatDoNotTestAnything="false" bootstrap="vendor/autoload.php" colors="true"
4+
processIsolation="false" stopOnError="false" stopOnFailure="false"
5+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
6+
backupStaticProperties="false">
187
<coverage>
198
<include>
209
<directory suffix=".php">src/</directory>

tests/Unit/TestBuilderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public function testFilter(): void
568568
/**
569569
* @return array
570570
*/
571-
public function idProvider(): array
571+
public static function idProvider(): array
572572
{
573573
return [
574574
'int' => [static fn() => 1],
@@ -658,7 +658,7 @@ public function testFilterIdInQuery(\Closure $scenario): void
658658
/**
659659
* @return array
660660
*/
661-
public function idsProvider(): array
661+
public static function idsProvider(): array
662662
{
663663
return [
664664
'integers' => [static fn() => [1, 2, 3]],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy