/**
  * testStoreRestoreNotoutdatedWithAttributes 
  * 
  * @access public
  */
 public function testStoreRestoreNotoutdatedWithAttributes()
 {
     // Test with 10 seconds lifetime
     $temp = $this->createTempDir(__CLASS__);
     $storage = new ezcCacheStorageFilePlain($temp, array('ttl' => 10));
     $dataArr = array('1', '2', '3');
     foreach ($dataArr as $id => $data) {
         $attributes = array('name' => 'test', 'title' => 'Test item', 'date' => time() . $id);
         $filename = $storage->getLocation() . $storage->generateIdentifier($id, $attributes);
         $storage->store($id, $data, $attributes);
         // Faking the m/a-time to be 5 seconds in the past
         touch($filename, time() - 5, time() - 5);
         $restoredData = $storage->restore($id, $attributes);
         $this->assertEquals($data, $restoredData, "Restore data broken for ID <{$id}>.");
     }
     $this->removeTempDir();
 }