Reformat. Fix pipe. Add more tests

This commit is contained in:
bzick
2014-05-06 14:22:58 +04:00
parent 6f969ee124
commit cd490d2bf6
20 changed files with 1625 additions and 739 deletions

View File

@@ -88,7 +88,7 @@ class ProviderTest extends TestCase
clearstatcache();
$templates = array(
"template1.tpl" => filemtime(FENOM_RESOURCES . '/template/template1.tpl'),
"unexists.tpl" => 1234567890
"unexists.tpl" => 1234567890
);
$this->assertFalse($this->provider->verify($templates));
}
@@ -97,11 +97,14 @@ class ProviderTest extends TestCase
{
$list = $this->provider->getList();
sort($list);
$this->assertSame(array(
"sub/template3.tpl",
"template1.tpl",
"template2.tpl"
), $list);
$this->assertSame(
array(
"sub/template3.tpl",
"template1.tpl",
"template2.tpl"
),
$list
);
}
public function testRm()