Пример #1
0
    public function testRender()
    {
        $request = new RequestAggregate();
        $request->setRequest(new Param('/Users/index/1'));
        $controller = new UsersController($request);
        $controller->invokeAction($request);
        $output = $controller->render('index');
        $expect = '<div><p>bar</p>
</div>
';
        $this->expectOutputString($expect);
        echo $output;
    }