Add test for calculating size of newly empty folder

This commit is contained in:
Michael Gapczynski 2013-07-29 10:23:14 -04:00
parent 1faac6108c
commit afff750011
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@ class Cache extends \PHPUnit_Framework_TestCase {
$this->assertEquals(1025, $this->cache->calculateFolderSize($file1));
$this->cache->remove($file2);
$this->cache->remove($file3);
$this->cache->remove($file4);
$this->assertEquals(0, $this->cache->calculateFolderSize($file1));
$this->cache->remove('folder');
$this->assertFalse($this->cache->inCache('folder/foo'));
$this->assertFalse($this->cache->inCache('folder/bar'));