public function matchesTellsIfTheSpecifiedRegularExpressionMatchesTheGivenAnnotation()
{
$mockReflectionService = $this->createMock(ReflectionService::class, ['getMethodAnnotations'], [], '', false, true);
$mockReflectionService->expects($this->any())->method('getMethodAnnotations')->with(__CLASS__, __FUNCTION__, 'Acme\\Some\\Annotation')->will($this->onConsecutiveCalls(['SomeAnnotation'], []));
$filter = new Aop\Pointcut\PointcutMethodAnnotatedWithFilter('Acme\\Some\\Annotation');
$filter->injectReflectionService($mockReflectionService);
$this->assertTrue($filter->matches(__CLASS__, __FUNCTION__, __CLASS__, 1234));
$this->assertFalse($filter->matches(__CLASS__, __FUNCTION__, __CLASS__, 1234));
}