Skip to content

Commit 3ae42ef

Browse files
Assert on string equality instead of regexes
1 parent c8085cf commit 3ae42ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/PropertyAccessorCollectionTestCase.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function testSetValueFailsIfNoAdderNorRemoverFound()
165165
->willReturn($axesBefore);
166166

167167
$this->expectException(NoSuchPropertyException::class);
168-
$this->expectExceptionMessageMatches(\sprintf('/Could not determine access type for property "axes" in class "%s"./', $car::class));
168+
$this->expectExceptionMessage(\sprintf('Could not determine access type for property "axes" in class "%s".', $car::class));
169169

170170
$this->propertyAccessor->setValue($car, 'axes', $axesAfter);
171171
}

0 commit comments

Comments
 (0)