Пример #1
0
 /**
  * Testing that a bad controller name passed to loadControllerDef will cause an exception.
  *
  * @since 1.0
  */
 public function testLoadControllerDef()
 {
     try {
         $this->controller->loadControllerDef('DoesNotExist');
         $this->fail('Testing that a bad controller name passed to loadControllerDef will cause an exception');
     } catch (IllegalArguementException $e) {
         $this->assertEquals('The class [DoesNotExist] is not defined anywhere!', $e->getMessage(), 'Testing that a bad controller name passed to loadControllerDef will cause an exception');
     }
 }