From 13414e2c5fc45b0088a0ec9b0858380cf1e27a76 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Fri, 24 Aug 2018 15:01:39 +0200 Subject: [PATCH] relax assertion on exception for forward compat --- tests/DataMapper/DataMapperTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/DataMapper/DataMapperTest.php b/tests/DataMapper/DataMapperTest.php index e39c79a..62f7141 100644 --- a/tests/DataMapper/DataMapperTest.php +++ b/tests/DataMapper/DataMapperTest.php @@ -243,7 +243,7 @@ public function testPropertyAccessInvalidArgumentExceptionsAreTreatedTheSameAsTy $this->assertCount(1, $form->get('price')->getErrors()); $this->assertSame('This value should be of type SensioLabs\RichModelForms\Tests\Fixtures\Model\Price.', $form->get('price')->getErrors()[0]->getMessage()); $this->assertInstanceOf(InvalidArgumentException::class, $form->get('price')->getErrors()[0]->getCause()); - $this->assertSame('Expected argument of type "SensioLabs\RichModelForms\Tests\Fixtures\Model\Price", "integer" given.', $form->get('price')->getErrors()[0]->getCause()->getMessage()); + $this->assertStringStartsWith('Expected argument of type "SensioLabs\RichModelForms\Tests\Fixtures\Model\Price", "integer" given', $form->get('price')->getErrors()[0]->getCause()->getMessage()); } /**