/** * @dataProvider getRegistrMethods * * @param string $method */ public function testRegistr($method) { $this->container->expects($this->once())->method($method)->will($this->returnValue('bar'))->with($this->place, 'AcmeDemoBundle:Welcome:index'); $this->assertEquals('bar', call_user_func([$this->event, $method], 'AcmeDemoBundle:Welcome:index')); }