mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-01 23:29:45 +00:00
Simplifying route configuration failure test case.
This commit is contained in:
parent
0fc106428a
commit
8cce38692a
1 changed files with 2 additions and 6 deletions
|
@ -1916,12 +1916,8 @@ class RouterTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
function testCustomRouteException() {
|
function testCustomRouteException() {
|
||||||
try {
|
$this->expectException();
|
||||||
Router::connect('/:controller', array(), array('routeClass' => 'Object'));
|
Router::connect('/:controller', array(), array('routeClass' => 'Object'));
|
||||||
$this->$this->assertFalse(true, 'No exception thrown when an invalid class was used.');
|
|
||||||
} catch (Exception $e) {
|
|
||||||
$this->assertTrue(true, 'Exception correctly thrown');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue