public function testExtractionOfRootUrlFromService() { $this->client->expects($this->never())->method("getBasePath"); $service = new Google_Service($this->client); $service->rootUrl = "root_url_dummy"; $service->batchPath = "batch_path_dummy"; $batch = $service->createBatch(); $this->assertInstanceOf("Google_Http_Batch", $batch); $this->assertAttributeEquals("root_url_dummy", "root_url", $batch); $this->assertAttributeEquals("batch_path_dummy", "batch_path", $batch); }