Example #1
0
 /**
  * Tests the getHttpTransports method.
  *
  * @return  void
  *
  * @since   3.4
  */
 public function testGetHttpTransports()
 {
     $transports = JHttpFactory::getHttpTransports();
     $this->assertEquals('curl', $transports[0], 'CURL should be the first transport returned.');
 }
Example #2
0
 /**
  * Helper wrapper method for getHttpTransports
  *
  * @return array  An array of available transport handlers
  *
  * @see     JHttpFactory::getHttpTransports()
  * @since   3.4
  */
 public function getHttpTransports()
 {
     return JHttpFactory::getHttpTransports();
 }