/**
  * Test getting an option that is not set
  *
  * @return void
  */
 public function testGetInvalidOptionKey()
 {
     $server = new TimeSync\TimeSync();
     $this->setExpectedException('Zend\\TimeSync\\Exception\\OutOfBoundsException');
     $result = $server->getOptions('foobar');
 }
Exemple #2
0
 /**
  * Test getting an option that is not set
  *
  * @return void
  */
 public function testGetInvalidOptionKey()
 {
     $server = new TimeSync\TimeSync();
     try {
         $result = $server->getOptions('foobar');
         $this->fail('Exception expected because we supplied an invalid option key');
     } catch (TimeSync\Exception $e) {
         // success
     }
 }