예제 #1
0
 private function _getAccess()
 {
     if (!class_exists('Horde_Http_Client')) {
         $this->markTestSkipped('Horde_Http is missing!');
     }
     $request = new Horde_Pear_Stub_Request();
     $request->setResponses(array(array('body' => '1.0.0', 'code' => 200), array('body' => '', 'code' => 404), array('body' => '', 'code' => 404), array('body' => '', 'code' => 404)));
     return $this->_createAccess($request);
 }
예제 #2
0
 private function _getPackageXml()
 {
     if (!class_exists('Horde_Http_Client')) {
         $this->markTestSkipped('Horde_Http is missing!');
     }
     $request = new Horde_Pear_Stub_Request();
     $request->setResponses(array(array('body' => file_get_contents(__DIR__ . '/../fixture/rest/package.xml'), 'code' => 404)));
     return $this->createRemote($request);
 }