Neos\Flow\Tests\Unit\Aop\Pointcut\PointcutMethodAnnotatedWithFilterTest::matchesReturnsFalseIfMethodDoesNotExistOrDeclardingClassHasNotBeenSpecified PHP Метод

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

    public function matchesReturnsFalseIfMethodDoesNotExistOrDeclardingClassHasNotBeenSpecified()
    {
        $mockReflectionService = $this->createMock(ReflectionService::class, [], [], '', false, true);
        $filter = new Aop\Pointcut\PointcutMethodAnnotatedWithFilter('Acme\\Some\\Annotation');
        $filter->injectReflectionService($mockReflectionService);
        $this->assertFalse($filter->matches(__CLASS__, __FUNCTION__, null, 1234));
        $this->assertFalse($filter->matches(__CLASS__, 'foo', __CLASS__, 1234));
    }