Beispiel #1
0
 public function test_connectionFailure()
 {
     $badCouch = new Sag('example.com');
     $badCouch->setOpenTimeout(1);
     try {
         $badCouch->setDatabase('bwah');
         $badCouch->get('/asdf');
         $this->assertTrue(false);
         //shouldn't reach this line
     } catch (SagException $e) {
         $this->assertTrue(true);
     }
 }