Google_Http_RequestTest

Copyright 2011 Google Inc.

Defined (1)

The class is defined in the following location(s).

/vendor/google/apiclient/tests/general/Http/RequestTest.php  
  1. class Google_Http_RequestTest extends PHPUnit_Framework_TestCase 
  2.  
  3. public function testBaseComponentDefault() 
  4. $request = new Google_Http_Request("https://api.example.com/base"); 
  5. $this->assertEquals("https://api.example.com", $request->getBaseComponent()); 
  6.  
  7. public function testBaseComponentExplicitStripsSlashes() 
  8. $request = new Google_Http_Request("https://api.example.com/base"); 
  9. $request->setBaseComponent("https://other.example.com/"); 
  10. $this->assertEquals("https://other.example.com", $request->getBaseComponent()); 
  11.  
  12. public function testBaseComponentWithPathExplicitStripsSlashes() 
  13. $request = new Google_Http_Request("https://api.example.com/base"); 
  14. $request->setBaseComponent("https://other.example.com/path/"); 
  15. $this->assertEquals("https://other.example.com/path", $request->getBaseComponent()); 
  16.