예제 #1
0
 /**
  * Testing the checkControllerDefExists method with good and bad input.
  *
  * @since 1.2.1
  */
 public function testCheckControllerDefExists()
 {
     $this->assertTrue(Controller::checkControllerDefExists('/'), 'Testing that the / controller always exists');
     $this->assertTrue(Controller::checkControllerDefExists('ImageController'), 'Testing that a good controller classname returns true');
     $this->assertFalse(Controller::checkControllerDefExists('DoesNotExist'), 'Testing that a bad controller classname returns false');
 }