Go\Core\GoAspectContainerTest::testAdvisorCanBeRegistered PHP 메소드

testAdvisorCanBeRegistered() 공개 메소드

Tests that pointcut can be registered and accessed
    public function testAdvisorCanBeRegistered()
    {
        $advisor = $this->getMock(Advisor::class);
        $this->container->registerAdvisor($advisor, 'test');
        // Verify that tag is working
        $advisors = $this->container->getByTag('advisor');
        $this->assertSame(array('advisor.test' => $advisor), $advisors);
    }