Go\Aop\Pointcut\SignaturePointcutTest::testDirectMethodMatchByName PHP Method

testDirectMethodMatchByName() public method

Tests that method matched by name directly
    public function testDirectMethodMatchByName()
    {
        $filterKind = PointFilter::KIND_METHOD;
        $pointcut = new SignaturePointcut($filterKind, 'publicMethod', TruePointFilter::getInstance());
        $matched = $pointcut->matches(new \ReflectionMethod(self::STUB_CLASS, 'publicMethod'));
        $this->assertTrue($matched, "Pointcut should match this method");
    }