Lines Matching refs:key
39 $key = $this->directory.'/cache/cachefile.php';
41 $dir = \dirname($key);
47 file_put_contents($key, $content);
49 $this->cache->load($key);
56 $key = $this->directory.'/cache/cachefile.php';
60 $this->cache->load($key);
67 $key = $this->directory.'/cache/cachefile.php';
70 $this->assertFileNotExists($key);
73 $this->cache->write($key, $content);
76 $this->assertFileExists($key);
77 $this->assertSame(file_get_contents($key), $content);
90 $key = $this->directory.'/cache/cachefile.php';
93 $this->assertFileNotExists($key);
99 $this->cache->write($key, $content);
112 $key = $this->directory.'/cache/cachefile.php';
115 $this->assertFileNotExists($key);
123 $this->cache->write($key, $content);
132 $key = $this->directory.'/cache/cachefile.php';
135 $this->assertFileNotExists($key);
138 @mkdir($key, 0777, true);
139 $this->assertTrue(is_dir($key));
141 $this->cache->write($key, $content);
146 $key = $this->directory.'/cache/cachefile.php';
148 $dir = \dirname($key);
153 touch($key, 1234567890);
155 $this->assertSame(1234567890, $this->cache->getTimestamp($key));
160 $key = $this->directory.'/cache/cachefile.php';
161 $this->assertSame(0, $this->cache->getTimestamp($key));