Beispiel #1
0
 public function testGetException()
 {
     $e = new Exception('Test');
     $this->_response->setException($e);
     $test = $this->_response->getException();
     $found = false;
     foreach ($test as $t) {
         if ($t === $e) {
             $found = true;
         }
     }
     $this->assertTrue($found);
 }