Skip to content

Commit db11b25

Browse files
authored
Merge pull request #420 from dotkernel/issue-419
Issue #419: Bump phpunit to v12.5.23
2 parents 194b96b + cf0105b commit db11b25

44 files changed

Lines changed: 413 additions & 359 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.2"
1918
- "8.3"
2019
- "8.4"
2120
- "8.5"

.github/workflows/qodana_code_quality.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
checks: write
1717
strategy:
1818
matrix:
19-
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
19+
php-versions: ['8.3', '8.4', '8.5' ]
2020
steps:
2121
- uses: actions/checkout@v6
2222
with:

.github/workflows/static-analysis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ jobs:
1515
- ubuntu-latest
1616

1717
php:
18-
- "8.2"
1918
- "8.3"
2019
- "8.4"
2120
- "8.5"

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
22

3+
## 7.2.0 - 2026-04-21
4+
5+
### Changed
6+
7+
* Issue [#419](https://github.com/dotkernel/admin/issues/419): Bump `PHPUnit` to version `12.5.23` by [@SergiuBota1](https://github.com/SergiuBota1) in [#420](https://github.com/dotkernel/admin/pull/420)
8+
9+
### Added
10+
11+
* Nothing
12+
13+
### Deprecated
14+
15+
* Nothing
16+
17+
### Removed
18+
19+
* Removed PHP `8.2` support
20+
21+
### Fixed
22+
23+
* Fixed PHPUnit notices caused by mock objects without expectations configured
24+
* Fixed PHPUnit deprecation warnings caused by using `with()` on test stubs
25+
326
## 7.1.0 - 2026-03-27
427

528
### Changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Documentation is available at: https://docs.dotkernel.org/admin-documentation/
1616

1717
| Branch | Release | PSR-11 | OSS Lifecycle | PHP Version |
1818
|--------|----------|--------|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
19-
| 7.0 | `>= 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.1.0) |
19+
| 7.0 | `>= 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.2.0) |
2020
| 6.0 | `< 7.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/6.2.0) |
2121
| 5.0 | `< 6.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/5.0.3) |
2222
| 4.0 | `< 5.0` | 1 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/4.3.1) |

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Branch | OSS Lifecycle | PHP Version |
66
|--------|----------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
7-
| 7.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.1.0) |
7+
| 7.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F7.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/7.2.0) |
88
| 6.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F6.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/6.2.0) |
99
| 5.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F5.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/5.0.3) |
1010
| 4.0 | ![OSS Lifecycle](https://img.shields.io/osslifecycle?file_url=https%3A%2F%2Fgithub.com%2Fdotkernel%2Fadmin%2Fblob%2F4.0%2FOSSMETADATA) | ![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/admin/4.3.1) |

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"process-timeout": 0
2929
},
3030
"require": {
31-
"php": "~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0",
31+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
3232
"dotkernel/dot-cache": "^4.4.0",
3333
"dotkernel/dot-cli": "^3.10.0",
3434
"dotkernel/dot-data-fixtures": "^1.5.0",
@@ -64,7 +64,7 @@
6464
"phpstan/phpstan": "^2.1.32",
6565
"phpstan/phpstan-doctrine": "^2.0.11",
6666
"phpstan/phpstan-phpunit": "^2.0.8",
67-
"phpunit/phpunit": "^10.5.58",
67+
"phpunit/phpunit": "^12.5.23",
6868
"roave/security-advisories": "dev-latest",
6969
"symfony/var-dumper": "^7.4.0",
7070
"vincentlanglet/twig-cs-fixer": "^3.11.0"

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
bootstrap="vendor/autoload.php"
55
colors="true"
6+
displayDetailsOnPhpunitNotices="true"
7+
displayDetailsOnTestsThatTriggerDeprecations="true"
8+
displayDetailsOnPhpunitDeprecations="true"
69
stopOnError="true">
710
<testsuites>
811
<testsuite name="UnitTests">

test/Unit/Admin/Adapter/AuthenticationAdapterTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class AuthenticationAdapterTest extends UnitTest
3030
public function testAccessors(): void
3131
{
3232
$adapter = new AuthenticationAdapter(
33-
$this->createMock(EntityManager::class),
33+
$this->createStub(EntityManager::class),
3434
[]
3535
);
3636

@@ -54,14 +54,14 @@ public function testAccessors(): void
5454
public function testWillNotAuthenticateWithoutValidConfig(): void
5555
{
5656
$adapter = new AuthenticationAdapter(
57-
$this->createMock(EntityManager::class),
57+
$this->createStub(EntityManager::class),
5858
[]
5959
);
6060
$this->expectExceptionMessage('No or invalid param "identity_class" provided.');
6161
$adapter->authenticate();
6262

6363
$adapter = new AuthenticationAdapter(
64-
$this->createMock(EntityManager::class),
64+
$this->createStub(EntityManager::class),
6565
[
6666
'orm_default' => [
6767
'identity_class' => Admin::class,
@@ -72,7 +72,7 @@ public function testWillNotAuthenticateWithoutValidConfig(): void
7272
$adapter->authenticate();
7373

7474
$adapter = new AuthenticationAdapter(
75-
$this->createMock(EntityManager::class),
75+
$this->createStub(EntityManager::class),
7676
[
7777
'orm_default' => [
7878
'identity_class' => Admin::class,
@@ -84,7 +84,7 @@ public function testWillNotAuthenticateWithoutValidConfig(): void
8484
$adapter->authenticate();
8585

8686
$adapter = new AuthenticationAdapter(
87-
$this->createMock(EntityManager::class),
87+
$this->createStub(EntityManager::class),
8888
[
8989
'orm_default' => [
9090
'identity_class' => Admin::class,
@@ -104,7 +104,7 @@ public function testWillNotAuthenticateWithoutValidConfig(): void
104104
public function testWillNotAuthenticateWithInvalidIdentityClassConfig(): void
105105
{
106106
$adapter = new AuthenticationAdapter(
107-
$this->createMock(EntityManager::class),
107+
$this->createStub(EntityManager::class),
108108
[
109109
'orm_default' => [
110110
'identity_class' => Exception::class,
@@ -133,7 +133,7 @@ public function testWillNotAuthenticateWithInvalidIdentityClassConfig(): void
133133
public function testWillNotAuthenticateWithInvalidIdentityPropertyConfig(): void
134134
{
135135
$adapter = new AuthenticationAdapter(
136-
$this->createMock(EntityManager::class),
136+
$this->createStub(EntityManager::class),
137137
[
138138
'orm_default' => [
139139
'identity_class' => Admin::class,

test/Unit/Admin/Delegator/AdminRoleDelegatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class AdminRoleDelegatorTest extends UnitTest
2323
*/
2424
public function testInvokeWillSucceedWithoutAdminForm(): void
2525
{
26-
$container = $this->createMock(ContainerInterface::class);
26+
$container = $this->createStub(ContainerInterface::class);
2727

2828
$delegator = (new AdminRoleDelegator())(
2929
$container,
@@ -47,7 +47,7 @@ public function testInvokeWillSucceedWithAdminForm(): void
4747
->method('get')
4848
->with(EntityManagerInterface::class)
4949
->willReturn(
50-
$this->createMock(EntityManagerInterface::class)
50+
$this->createStub(EntityManagerInterface::class)
5151
);
5252

5353
$delegator = (new AdminRoleDelegator())(

0 commit comments

Comments
 (0)