Skip to content

Commit e02e215

Browse files
committed
Fix test
1 parent aa83784 commit e02e215

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Objects/ReferencePropertyTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ class ReferencePropertyTest extends AbstractPHPModelGeneratorTest
3333
public function testNotResolvedReferenceThrowsAnException(string $reference): void
3434
{
3535
$this->expectException(SchemaException::class);
36-
$this->expectExceptionMessageMatches("/Unresolved Reference $reference in file .*\.json/");
36+
$this->expectExceptionMessageMatches(
37+
sprintf('/Unresolved Reference %s in file .*\.json/', str_replace('/', '\/', $reference))
38+
);
3739

3840
$this->generateClassFromFileTemplate('NotResolvedReference.json', [$reference]);
3941
}

0 commit comments

Comments
 (0)