Rollback phpunit to require-dev

This commit is contained in:
Ivan Shalganov
2013-09-13 21:19:51 +04:00
parent bcd9358fe0
commit 1428c86cac
7 changed files with 108 additions and 47 deletions

View File

@ -71,7 +71,7 @@ class Compiler
}
$inc = $tpl->getStorage()->compile($name, false);
$tpl->addDepend($inc);
return '?>' . $tpl->getBody() . '<?php';
return '?>' . $inc->getBody() . '<?php';
}
@ -1034,24 +1034,4 @@ class Compiler
{
$scope->tpl->escape = $scope["escape"];
}
/**
* Unset present variables
*
* @param Tokenizer $tokens
* @param Template $tpl
* @return string
* @throws InvalidUsageException
*/
public static function tagUnset(Tokenizer $tokens, Template $tpl)
{
$vars = array();
while ($tokens->valid()) {
$vars[] = $tpl->parseVariable($tokens);
}
if (!$vars) {
throw new InvalidUsageException("Unset must accept variable(s)");
}
return 'unset(' . implode(', ', $vars) . ')';
}
}