public function ytestCacheMethods()
{
$this->specify("View methods don't return the View instance", function () {
$di = $this->_getDi();
$view = new View();
$view->setDI($di);
$view->setViewsDir(PATH_DATA . 'views' . DIRECTORY_SEPARATOR);
expect($view->start())->equals($view);
expect($view->cache(true))->equals($view);
expect($view->render('test2', 'index'))->equals($view);
expect($view->finish())->equals($view);
});
}