Please change your dot and star! Try this: 'method(Test\Package\Controller\ItemController->.*Action())' Note the star and the dot right before "Action".