/** * Singleton * * @return PASL_Web_Service_Gateway */ public static function GetInstance() { if (Gateway::$instance == null) { Gateway::$instance = new Gateway(); } return Gateway::$instance; }
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 }