Skip to content

Commit 5882cfe

Browse files
committed
minor #109 fix compatibility with to-be-released PHPUnit 10 (xabbuh)
This PR was merged into the 0.1-dev branch. Discussion ---------- fix compatibility with to-be-released PHPUnit 10 Commits ------- 7310895 fix compatibility with to-be-released PHPUnit 10
2 parents a70af18 + 7310895 commit 5882cfe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"require-dev": {
3030
"friendsofphp/php-cs-fixer": "^2.16",
3131
"phpstan/phpstan": "^0.12.4",
32-
"symfony/phpunit-bridge": "^4.4||^5.0",
32+
"symfony/phpunit-bridge": "^4.4.12||^5.2",
3333
"symfony/translation": "^4.4||^5.0"
3434
},
3535
"conflict": {

tests/Integration/ExceptionHandlingTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function testPropertyAccessInvalidArgumentExceptionsAreTreatedTheSameAsTy
7575
$this->assertCount(1, $form->get('price')->getErrors());
7676
$this->assertSame('This value should be of type Qossmic\RichModelForms\Tests\Fixtures\Model\Price.', $form->get('price')->getErrors()[0]->getMessage());
7777
$this->assertInstanceOf(InvalidArgumentException::class, $form->get('price')->getErrors()[0]->getCause());
78-
$this->assertRegExp('/^Expected argument of type "Qossmic\\\\RichModelForms\\\\Tests\\\\Fixtures\\\\Model\\\\Price", "int(eger)?" given/', $form->get('price')->getErrors()[0]->getCause()->getMessage());
78+
$this->assertMatchesRegularExpression('/^Expected argument of type "Qossmic\\\\RichModelForms\\\\Tests\\\\Fixtures\\\\Model\\\\Price", "int(eger)?" given/', $form->get('price')->getErrors()[0]->getCause()->getMessage());
7979
}
8080

8181
public function testNonArgumentTypeMismatchErrorsWillNotBeHandled(): void
@@ -173,7 +173,7 @@ public function testPropertyAccessInvalidArgumentExceptionsAreTreatedTheSameAsTy
173173
$this->assertCount(1, $form->get('price')->getErrors());
174174
$this->assertSame('This value should be of type Qossmic\RichModelForms\Tests\Fixtures\Model\Price.', $form->get('price')->getErrors()[0]->getMessage());
175175
$this->assertInstanceOf(InvalidArgumentException::class, $form->get('price')->getErrors()[0]->getCause());
176-
$this->assertRegExp('/^Expected argument of type "Qossmic\\\\RichModelForms\\\\Tests\\\\Fixtures\\\\Model\\\\Price", "int(eger)?" given/', $form->get('price')->getErrors()[0]->getCause()->getMessage());
176+
$this->assertMatchesRegularExpression('/^Expected argument of type "Qossmic\\\\RichModelForms\\\\Tests\\\\Fixtures\\\\Model\\\\Price", "int(eger)?" given/', $form->get('price')->getErrors()[0]->getCause()->getMessage());
177177
}
178178

179179
public function testNonArgumentTypeMismatchErrorsWillNotBeHandledWithConfiguredExpectedExceptions(): void

0 commit comments

Comments
 (0)