Exemplo n.º 1
0
 /**
  * @expectedException \RuntimeException
  */
 public function testNullClassName()
 {
     $oFactory = new ClientFactory();
     $oConfig = new ConfigurationImpl();
     $oConfig->setConnectTimeout(2);
     $oFactory->newInstance(null, $oConfig);
 }
 /**
  * 
  * http://dbpedia.org/snorql/?query=SELECT+*+WHERE+{%0D%0A+%3Fs+%3Fp+%3Fo+.%0D%0A}+LIMIT+10
  * 
  * //https://sandbox.service-now.com/api/now/v1/stats/incident?sysparm_count=true&sysparm_max_fields=number&sysparm_min_fields=number,priority&sysparm_query=active=true&assignment_group=software
  */
 public function setUp()
 {
     $oConfig = new ConfigurationImpl();
     $oConfig->setConnectTimeout(5);
     $oConfig->setBasicAuthentication('admin', 'admin');
     $oConfig->setVerbose(true);
     $this->object = new HttpSocketClient($oConfig);
 }
Exemplo n.º 3
0
 /**
  * 
  * http://dbpedia.org/snorql/?query=SELECT+*+WHERE+{%0D%0A+%3Fs+%3Fp+%3Fo+.%0D%0A}+LIMIT+10
  * 
  * //https://sandbox.service-now.com/api/now/v1/stats/incident?sysparm_count=true&sysparm_max_fields=number&sysparm_min_fields=number,priority&sysparm_query=active=true&assignment_group=software
  */
 public function setUp()
 {
     $this->host = 'https://sandbox.service-now.com/api/now/v1/stats/incident?sysparm_count=true&sysparm_max_fields=number&sysparm_min_fields=number,priority,short_description&sysparm_query=active=true&assignment_group=software';
     $oConfig = new ConfigurationImpl();
     $oConfig->setConnectTimeout(5);
     $oConfig->setBasicAuthentication('admin', 'admin');
     $oConfig->setVerbose(true);
     $this->object = new HttpCurlClient($oConfig);
 }