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

testCanMatchProperty() public method

Tests that pointcut can match property
    public function testCanMatchProperty()
    {
        $filterKind = PointFilter::KIND_METHOD;
        $pointcut = new SignaturePointcut($filterKind, 'public', TruePointFilter::getInstance());
        $matched = $pointcut->matches(new \ReflectionProperty(self::STUB_CLASS, 'public'));
        $this->assertTrue($matched, "Pointcut should match this property");
    }