示例#1
0
文件: Gateway.php 项目: how/openpasl
 /**
  * Singleton
  *
  * @return PASL_Web_Service_Gateway
  */
 public static function GetInstance()
 {
     if (Gateway::$instance == null) {
         Gateway::$instance = new Gateway();
     }
     return Gateway::$instance;
 }
示例#2
0
 public function TestServiceInstantiation()
 {
     // Stubbed test to keep from the testsuite from breaking
     $this->gateway = \PASL\Web\Service\Gateway::GetInstance();
     $this->service = $this->gateway->service;
     $this->assertIsA($this->service, 'PASL\\Web\\Service');
     // NOT REALLY SURE HOW TO WRITE A TEST HERE WHEN IT REQUIRES A REAL POST/GET/PUT/DELETE REQUEST
 }