Skip to content

Commit a71e8b9

Browse files
committed
Update for phpcq and phpunit
1 parent 8276f29 commit a71e8b9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.phpcq.yaml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ phpcq:
1212
phpunit:
1313
version: ^1.0
1414
signed: false
15+
requirements:
16+
phpunit:
17+
version: ^11.5.48
1518
psalm:
1619
version: ^1.0
1720
signed: false
@@ -55,6 +58,7 @@ phpcq:
5558
- A978220305CD5C32
5659
- 689DAD778FF08760E046228BA978220305CD5C32
5760
- 97B02DD8E5071466
61+
- D91D86963AF3A29B6520462297B02DD8E5071466
5862
# Composer normalize
5963
- C00543248C87FB13
6064
- 0FDE18AE1D09E19F60F6B1CBC00543248C87FB13

tests/Widgets/ContentArticleWidgetTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ public function testNewInstance(): void
6767
$widget
6868
->expects(self::any())
6969
->method('import')
70-
->withConsecutive([Config::class, 'Config']);
70+
->willReturnCallback(function ($parameters) {
71+
$this->assertInstanceof(Config::class, $parameters[0]);
72+
$this->assertSame('Config', $parameters[1]);
73+
});
7174

7275
self::assertEmpty($widget->getAttributes());
7376
}

0 commit comments

Comments
 (0)