mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +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
|
||||
*/
|
||||
function testCustomRouteException() {
|
||||
try {
|
||||
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');
|
||||
}
|
||||
$this->expectException();
|
||||
Router::connect('/:controller', array(), array('routeClass' => 'Object'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue