lithium\tests\mocks\action\MockPostsController::index PHP Method

index() public method

public index ( $test = false )
    public function index($test = false)
    {
        if ($test) {
            return array('foo' => 'bar');
        }
        return 'List of posts';
    }