/** * 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.'); }
/** * 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(); }