public function testGetErrors() { $sut = new Dfp_Datafeed_File_Reader(); $mockFormat = $this->getMock('Dfp_Datafeed_File_Reader_Format_Interface'); $mockFormat->expects($this->once())->method('getErrors')->will($this->returnValue(array('error'))); $sut->setFormat($mockFormat); $this->assertEquals(array('error'), $sut->getErrors()); }