Skip to content

Commit 4d2d03f

Browse files
authored
Setup yasd int Github Actions (#3097)
* Setup yasd * Update * Update PipelineTest.php
1 parent 17ee795 commit 4d2d03f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

tests/Aop/PipelineTest.php

+2-7
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Mockery;
1818
use PHPUnit\Framework\TestCase;
1919
use Psr\Container\ContainerInterface;
20+
use function Yasd\Zval\getRefCount;
2021

2122
/**
2223
* @internal
@@ -44,12 +45,6 @@ public function testRefcountForPipelineCarry()
4445
});
4546

4647
$this->assertTrue($res);
47-
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]);
48+
$this->assertEquals(2, getRefCount($pipeline));
5449
}
5550
}

0 commit comments

Comments
 (0)