public function testEditCell() { $feed = new CellFeed($this->getSimpleXMLElement("cell-feed")); $mockServiceRequest = $this->getMockBuilder(DefaultServiceRequest::class)->setMethods(array("post"))->disableOriginalConstructor()->getMock(); $mockServiceRequest->expects($this->once())->method("post")->with($this->equalTo("https://spreadsheets.google.com/feeds/cells/15L06yklgflGRDjnN-VvhGYOoVLCH40DJoW5fFiqSTc5U/od6/private/full"), $this->stringContains("<entry")); ServiceRequestFactory::setInstance($mockServiceRequest); $feed->editCell(2, 1, "Test"); }