public function testDeleteReturnIds() { $storage = new ezcCacheStorageFileApcArray($this->getTempDir(__CLASS__), array('ttl' => 100)); $storage->reset(); $data = array('ID', 'Some/Dir/ID', 'Some/other/Dir/ID/1', 'Some/other/Dir/ID/2', 'Some/other/Dir/ID/3'); $attributes = array('lang' => 'en'); foreach ($data as $id) { $storage->store($id, $id, $attributes); } $deleted = $storage->delete('Some/other/Dir/ID/3', $attributes, true); $this->assertEquals(array('Some/other/Dir/ID/3'), $deleted, 'Deleted IDs not returned correctly.'); $deleted = $storage->delete(null, $attributes, true); $this->assertEquals(array('ID', 'Some/Dir/ID', 'Some/other/Dir/ID/1', 'Some/other/Dir/ID/2'), $deleted, 'Deleted IDs not returned correctly.'); $this->removeTempDir(); }