Commit f31bb299 authored by Dave Marshall's avatar Dave Marshall

Fix test

parent 3a8e2dd5
......@@ -631,7 +631,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
public function testViewListenersCanBeChained()
{
$app = new Application();
$app->get('/foo', function() { return function() { return 'world'; }; });
$app->get('/foo', function() { return (object) array('name' => 'world'); });
$app->view(function (\stdClass $view) {
return array('msg' => 'Hello '.$view->name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment