/** * Router should NOT keep reference to a callback that is not callable */ public function testNotFoundHandlerIfNotCallable() { $router = new \Slim\Router(); $router->setResourceUri($this->req->getResourceUri()); $notFoundCallback = 'foo'; $callback = $router->notFound($notFoundCallback); $this->assertNull($callback); }