@@ -129,7 +129,7 @@ public function __toString(): string
129
129
public function testParseValueThrowsIfValueCantBeString (Regex $ regex ): void
130
130
{
131
131
$ this ->expectException (Error::class);
132
- $ this ->expectExceptionMessageRegExp ('/can not be serialized/ ' );
132
+ $ this ->expectExceptionMessageMatches ('/can not be serialized/ ' );
133
133
134
134
$ regex ->parseValue (new class () {
135
135
});
@@ -143,7 +143,7 @@ public function testParseValueThrowsIfValueCantBeString(Regex $regex): void
143
143
public function testParseValueThrowsIfValueDoesNotMatch (Regex $ regex ): void
144
144
{
145
145
$ this ->expectException (Error::class);
146
- $ this ->expectExceptionMessageRegExp ('/did not match the regex/ ' );
146
+ $ this ->expectExceptionMessageMatches ('/did not match the regex/ ' );
147
147
148
148
$ regex ->parseValue ('' );
149
149
}
@@ -169,7 +169,7 @@ public function testParseValuePassesOnMatch(Regex $regex): void
169
169
public function testParseLiteralThrowsIfNotString (Regex $ regex ): void
170
170
{
171
171
$ this ->expectException (Error::class);
172
- $ this ->expectExceptionMessageRegExp ('/ ' .NodeKind::INT .'/ ' );
172
+ $ this ->expectExceptionMessageMatches ('/ ' .NodeKind::INT .'/ ' );
173
173
174
174
$ regex ->parseLiteral (new IntValueNode ([]));
175
175
}
@@ -182,7 +182,7 @@ public function testParseLiteralThrowsIfNotString(Regex $regex): void
182
182
public function testParseLiteralThrowsIfValueDoesNotMatch (Regex $ regex ): void
183
183
{
184
184
$ this ->expectException (Error::class);
185
- $ this ->expectExceptionMessageRegExp ('/did not match the regex/ ' );
185
+ $ this ->expectExceptionMessageMatches ('/did not match the regex/ ' );
186
186
187
187
$ regex ->parseLiteral (new StringValueNode (['value ' => 'asdf ' ]));
188
188
}
0 commit comments