public function testSetDialectString() { $sut = new Dfp_Datafeed_File_Reader(); $mockFormat = $this->getMock('Dfp_Datafeed_File_Reader_Format_Interface'); $mockFormat->expects($this->once())->method('setDialectString')->with($this->equalTo('dialect')); $sut->setFormat($mockFormat); $sut->setDialectString('dialect'); }