We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aae1708 commit 303106fCopy full SHA for 303106f
tests/ProtocolVersionTest.php
@@ -144,10 +144,10 @@ public function testClone(): void
144
$ipv4 = ProtocolVersion::ipv4();
145
146
$this->expectError();
147
- $this->expectErrorMessage(sprintf(
148
- 'Call to private %s::__clone() from context \'%s\'',
149
- ProtocolVersion::class,
150
- self::class,
+ $this->expectErrorMessageMatches(sprintf(
+ '#^Call to private %s::__clone\(\) from (?:context|scope) \'?%s\'?$#',
+ preg_quote(ProtocolVersion::class, '#'),
+ preg_quote(self::class, '#'),
151
));
152
$cloned = clone $ipv4;
153
}
0 commit comments