protected function getBundle() { $bundle = parent::getBundle(); $bundle->expects($this->any())->method('getName')->will($this->returnValue('AcmeBlogBundle')); return $bundle; }