-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
change separator "::" -> ":"
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,13 +69,21 @@ public function testGetCallable() | |
|
||
public function testGetCallableAsClass() | ||
{ | ||
$route = new \Slim\Route('/foo', '\Slim\Router::getCurrentRoute'); | ||
$route = new \Slim\Route('/foo', '\Slim\Router:getCurrentRoute'); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
designermonkey
Member
|
||
|
||
$callable = $route->getCallable(); | ||
$this->assertInstanceOf('\Slim\Router', $callable[0]); | ||
$this->assertEquals('getCurrentRoute', $callable[1]); | ||
} | ||
|
||
public function testGetCallableAsStaticMethod() | ||
{ | ||
$route = new \Slim\Route('/bar', '\Slim\Slim::getInstance'); | ||
|
||
$callable = $route->getCallable(); | ||
$this->assertEquals('\Slim\Slim::getInstance', $callable); | ||
} | ||
|
||
public function testSetCallable() | ||
{ | ||
$callable = function () { | ||
|
For performance reason, the controller should be created only if nessary, isn't it ?
At least when we are not on debug.