Neos\Flow\Tests\Unit\Aop\Pointcut\PointcutFilterTest::matchesThrowsAnExceptionIfTheSpecifiedPointcutDoesNotExist PHP Method

matchesThrowsAnExceptionIfTheSpecifiedPointcutDoesNotExist() public method

    public function matchesThrowsAnExceptionIfTheSpecifiedPointcutDoesNotExist()
    {
        $className = 'Foo';
        $methodName = 'bar';
        $methodDeclaringClassName = 'Baz';
        $pointcutQueryIdentifier = 42;
        $mockProxyClassBuilder = $this->getMockBuilder(Aop\Builder\ProxyClassBuilder::class)->disableOriginalConstructor()->setMethods(['findPointcut'])->getMock();
        $mockProxyClassBuilder->expects($this->once())->method('findPointcut')->with('Aspect', 'pointcut')->will($this->returnValue(false));
        $pointcutFilter = new Aop\Pointcut\PointcutFilter('Aspect', 'pointcut');
        $pointcutFilter->injectProxyClassBuilder($mockProxyClassBuilder);
        $pointcutFilter->matches($className, $methodName, $methodDeclaringClassName, $pointcutQueryIdentifier);
    }