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 17ee795 commit 4d2d03fCopy full SHA for 4d2d03f
tests/Aop/PipelineTest.php
@@ -17,6 +17,7 @@
17
use Mockery;
18
use PHPUnit\Framework\TestCase;
19
use Psr\Container\ContainerInterface;
20
+use function Yasd\Zval\getRefCount;
21
22
/**
23
* @internal
@@ -44,12 +45,6 @@ public function testRefcountForPipelineCarry()
44
45
});
46
47
$this->assertTrue($res);
-
48
- ob_start();
49
- debug_zval_dump($pipeline);
50
- $data = ob_get_clean();
51
52
- preg_match('/refcount\((\d+)\)/U', $data, $res);
53
- $this->assertEquals(2, $res[1]);
+ $this->assertEquals(2, getRefCount($pipeline));
54
}
55
0 commit comments