public function testGetErrorInfos() { $retValue = 'return value'; $this->errorInfos->expects($this->once())->method('getItems')->will($this->returnValue($retValue)); $this->assertEquals($retValue, $this->model->getErrorInfos()); }