Skip to content

Commit 1fbb0c0

Browse files
[6.x] Fix FastParserTest clashing with PHPUnit 13's attempt() method (#15976)
Co-authored-by: Amp <amp@ampcode.com>
1 parent ad8dc74 commit 1fbb0c0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/Yaml/FastParserTest.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,13 +228,13 @@ public function it_parses_randomly_generated_documents_the_same_as_symfony()
228228

229229
private function assertParsesTheSameAsSymfony(string $yaml): void
230230
{
231-
$expected = $this->attempt(fn () => (new Parser)->parse($yaml));
232-
$actual = $this->attempt(fn () => (new FastParser)->parse($yaml));
231+
$expected = $this->attemptToParse(fn () => (new Parser)->parse($yaml));
232+
$actual = $this->attemptToParse(fn () => (new FastParser)->parse($yaml));
233233

234234
$this->assertSame($expected, $actual, 'Failed parsing: '.json_encode($yaml));
235235
}
236236

237-
private function attempt(callable $parse): array
237+
private function attemptToParse(callable $parse): array
238238
{
239239
try {
240240
// Serialized, so that types must match exactly and NAN equals NAN.

0 commit comments

Comments
 (0)