public function testSetFormatString() { $name = 'test' . uniqid(); $className = 'Dfp_Datafeed_File_Reader_Format_' . ucfirst($name); $sut = new Dfp_Datafeed_File_Reader(); $mockFormat = $this->getMock('Dfp_Datafeed_File_Reader_Format_Interface', array(), array(), $className); $sut->setFormatString($name); $this->assertInstanceOf($className, $sut->getFormat()); }