Skip to content

Commit 307787e

Browse files
timfennisKimi
andcommitted
feat: support phpunit 13
Co-authored-by: Kimi <kimi@kimi.moonshot.cn>
1 parent 341a5dc commit 307787e

4 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ jobs:
6060
- php-version: 8.5
6161
symfony-version: "^8.0"
6262
phpunit-version: "^12.0"
63+
- php-version: 8.4
64+
symfony-version: "^7.0"
65+
phpunit-version: "^13.0"
66+
- php-version: 8.4
67+
symfony-version: "^8.0"
68+
phpunit-version: "^13.0"
69+
- php-version: 8.5
70+
symfony-version: "^8.0"
71+
phpunit-version: "^13.0"
6372

6473
steps:
6574
- name: Checkout

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
Removed features deprecated in [4.6](#46)
66

7+
## 4.15
8+
Added support for PHPUnit 13
9+
710
## 4.14
811
Drop support for PHP 7.4 (it does not support Attributes, which are obligatory for compatibility with PHPUnit 12)
912

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"require": {
1818
"php": "^8.0",
19-
"phpunit/phpunit": "^9.6 || ^10.0 || ^11.0 || ^12.0",
19+
"phpunit/phpunit": "^9.6 || ^10.0 || ^11.0 || ^12.0 || ^13.0",
2020
"symfony/browser-kit": "^5.4 || ^6.4 || ^7.0 || ^8.0",
2121
"symfony/framework-bundle": "^5.4 || ^6.4 || ^7.0 || ^8.0"
2222
},

tests/DependencyInjection/Compiler/SetTestClientPassMockTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,13 @@ public function testSetTestClientPassElse(): void
3636
->disableOriginalConstructor()
3737
->getMock();
3838

39-
$container->expects($this->any())
40-
->method('getParameter')
39+
$container->method('getParameter')
4140
->willReturn(true);
4241

43-
$container->expects($this->any())
44-
->method('hasDefinition')
42+
$container->method('hasDefinition')
4543
->willReturn(false);
4644

47-
$container->expects($this->any())
48-
->method('hasAlias')
45+
$container->method('hasAlias')
4946
->willReturn(false);
5047

5148
try {

0 commit comments

Comments
 (0)