Example #1
0
 public function testAddError()
 {
     $sut = new Dfp_Datafeed_File_Reader();
     $mockFormat = $this->getMock('Dfp_Datafeed_File_Reader_Format_Interface');
     $mockFormat->expects($this->once())->method('addError')->with($this->equalTo('error'));
     $sut->setFormat($mockFormat);
     $sut->addError('error');
 }