Go\Aop\Pointcut\SignaturePointcutTest::testCanMatchProperty PHP Метод

testCanMatchProperty() публичный Метод

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");
    }