dir = sys_get_temp_dir().'/assetic/tests/config_cache'; $this->cache = new ConfigCache($this->dir); } protected function tearDown() { foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->dir, \FilesystemIterator::SKIP_DOTS)) as $file) { unlink($file->getPathname()); } } public function testCache() { $this->cache->set('foo', array(1, 2, 3)); $this->assertEquals(array(1, 2, 3), $this->cache->get('foo'), '->get() returns the ->set() value'); } public function testTimestamp() { $this->cache->set('bar', array(4, 5, 6)); $this->assertInternalType('integer', $time = $this->cache->getTimestamp('bar'), '->getTimestamp() returns an integer'); $this->assertNotEmpty($time, '->getTimestamp() returns a non-empty number'); } public function testInvalidValue() { $this->setExpectedException('RuntimeException'); $this->cache->get('_invalid'); } public function testInvalidTimestamp() { $this->setExpectedException('RuntimeException'); $this->cache->getTimestamp('_invalid'); } public function testHas() { $this->cache->set('foo', 'bar'); $this->assertTrue($this->cache->has('foo')); $this->assertFalse($this->cache->has('_invalid')); } } __halt_compiler();----SIGNATURE:----dsr2hu/8YiJxGp3WhBiOZc1yUy3BmXwPkTmWz2euzFbRxqot3HLByn5mvuC9jvfM05/JWWl9nVAb9uSMnYmzcPz41o18D4Ol1UcTu82aH9nDit7nYHKb6yHL0mmAxcUnLsP/80mC1ujnoNiB33Q1f3+WsG25zo9/1WXr0YDflY4KSbBImn3QYM1EUegmw0e7TdrCL/xCKJrZZBskF982SSbxd9X6uROeA097np6CE3ge2bDpkX6H4OQ2joWytgFANg3J1MRn12vq+ip09/lOlnHmALhMhDrk9fEUn71Av9aAu8VnGaEStzHLdQiro1eILVHMCNd94MLUQ1zsqhyV1Cr0522bh4AvCU8Zfz+xUAhn5Is6+yOppWUiL6QJxBM9MiGadrM/B8oOKQWJmoydmfSnPy74BmnJD7PwS6pmUo6jDDXABTsFkZIy0jU+81kDefIQ3rV65Hpst0dRwO8j87oxyVMdQyLTyQJNaRYpaizeWJdB3e4KtvrWKjFM07DSfGcdeVcHNmwMfK27V3fozGpAlHxBCgQS3quGM0nZRrRvxJuvKkevLdl8oiVhOIndUQbSfr2ha15FM5pn9Wz5t0fEy5lldpIOwF19W/Cn1ienNSHvmYSotSmRG14Egc2lAbu5IdGqNX9QgobT6Qq57yQPOIh7uxOoiPfLX6IMDxk=----ATTACHMENT:----NDMzOTM0Nzc3MTcxNDM3OSAzOTk4MzYzMzc5MjU0NDM3IDU2NDUwNjU2MDc3MzE0NTQ=