public function testIsUsed() { $this->assertFalse($this->storage->isUsed('key.tpl')); $this->storage->storeItem('item', 'key.tpl'); $this->assertFalse($this->storage->isUsed('key.tpl')); $this->storage->storeItem('item.tpl', 'key.tpl'); $this->assertTrue($this->storage->isUsed('key.tpl')); chmod("{$this->root}/item.tpl", 0204); $this->assertEquals(CAMP_ERROR_READ_FILE, $this->storage->isUsed('key.tpl')); chmod("{$this->root}/item.tpl", 0644); }