mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Improve providers. Renders now use bulk checks via ::verify
This commit is contained in:
@@ -55,6 +55,10 @@ class TestCase extends \PHPUnit_Framework_TestCase {
|
||||
}
|
||||
|
||||
public function tpl($name, $code) {
|
||||
$dir = dirname($name);
|
||||
if($dir != "." && !is_dir(FENOM_RESOURCES.'/template/'.$dir)) {
|
||||
mkdir(FENOM_RESOURCES.'/template/'.$dir, 0777, true);
|
||||
}
|
||||
file_put_contents(FENOM_RESOURCES.'/template/'.$name, $code);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user