Go\Aop\Framework\AbstractJoinpointTest::testSortingLogic PHP Method

testSortingLogic() public method

public testSortingLogic ( $advices, array $order = [] )
$order array
    public function testSortingLogic($advices, array $order = [])
    {
        $advices = AbstractJoinpoint::sortAdvices($advices);
        foreach ($advices as $advice) {
            $expected = array_shift($order);
            $this->assertInstanceOf($expected, $advice);
        }
    }