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

testRegularPattern() public method

Tests that pattern is working correctly
public testRegularPattern ( )
    public function testRegularPattern()
    {
        $filterKind = PointFilter::KIND_METHOD;
        $pointcut = new SignaturePointcut($filterKind, '*Method', TruePointFilter::getInstance());
        $matched = $pointcut->matches(new \ReflectionMethod(self::STUB_CLASS, 'publicMethod'));
        $this->assertTrue($matched, "Pointcut should match this method");
        $matched = $pointcut->matches(new \ReflectionMethod(self::STUB_CLASS, 'protectedMethod'));
        $this->assertTrue($matched, "Pointcut should match this method");
    }