Beispiel #1
0
 /**
  * Tests that calling an undefined method on the event results in an
  * exception.
  *
  * @return void
  */
 public function testInvalidMethodCallRaisesException()
 {
     try {
         $this->event->foo();
         $this->fail('Expected exception not thrown');
     } catch (Phergie_Event_Exception $e) {
         if ($e->getCode() != Phergie_Event_Exception::ERR_INVALID_METHOD_CALL) {
             $this->fail('Unexpected exception code ' . $e->getCode());
         }
     }
 }