We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 916eeb0 commit c40a6f9Copy full SHA for c40a6f9
php/tests/DebugInfoTest.php
@@ -34,18 +34,25 @@
34
35
class DebugInfoTest extends TestBase
36
{
37
+ public function setUp(): void
38
+ {
39
+ if (extension_loaded('protobuf')) {
40
+ $this->markTestSkipped('__debugInfo is not supported for the protobuf extension');
41
+ }
42
43
+
44
public function testVarDumpOutput()
45
46
$m = new DoubleValue();
47
$m->setValue(1.5);
48
var_dump($m);
- $this->expectOutputString(<<<EOL
-object(Google\Protobuf\DoubleValue)#12 (1) {
49
+ $regex = <<<EOL
50
+object(Google\Protobuf\DoubleValue)#%s (1) {
51
["value"]=>
52
float(1.5)
53
}
-
-EOL);
54
+EOL;
55
+ $this->expectOutputRegex('/' . sprintf(preg_quote($regex), '\d+') . '/');
56
57
58
public function testTopLevelDoubleValue()
0 commit comments