/** * * @param string $format */ public function write(Table $table, OutputInterface $output) { $serviceRequest = new DefaultServiceRequest(); ServiceRequestFactory::setInstance($serviceRequest); $spreadsheetService = new SpreadsheetService(); $spreadsheetFeed = $spreadsheetService->getSpreadsheetFeed(); }
public function testGetSpreadsheetFeed() { $this->setServiceRequest("spreadsheet-feed.xml"); $spreadsheetService = new SpreadsheetService(); $feed = $spreadsheetService->getSpreadsheetFeed(); $this->assertTrue($feed instanceof SpreadsheetFeed); }