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

testMultipleRegularPattern() public method

Tests that multiple pattern is matching
    public function testMultipleRegularPattern()
    {
        $filterKind = PointFilter::KIND_METHOD;
        $pointcut = new SignaturePointcut($filterKind, 'publicMethod|protectedMethod', 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");
    }