Go\Aop\Pointcut\SignaturePointcutTest::testIssue115 PHP 메소드

testIssue115() 공개 메소드

Tests that multiple pattern is using strict matching
public testIssue115 ( )
    public function testIssue115()
    {
        $filterKind = PointFilter::KIND_METHOD;
        $pointcut = new SignaturePointcut($filterKind, 'public|Public', TruePointFilter::getInstance());
        $matched = $pointcut->matches(new \ReflectionMethod(self::STUB_CLASS, 'publicMethod'));
        $this->assertFalse($matched, "Pointcut should match strict");
        $matched = $pointcut->matches(new \ReflectionMethod(self::STUB_CLASS, 'staticLsbPublic'));
        $this->assertFalse($matched, "Pointcut should match strict");
    }