public function testReadWithScope()
{
$adapter = new File(array('scope' => 'primary'));
$time = time() + 60;
$keys = array('primary_key1' => 'test1', 'key1' => 'test2');
foreach ($keys as $key => $data) {
$path = Libraries::get(true, 'resources') . "/tmp/cache/{$key}";
file_put_contents($path, "{:expiry:{$time}}\n{$data}");
}
$keys = array('key1');
$expected = array('key1' => 'test1');
$result = $adapter->read($keys);
$this->assertEqual($expected, $result);
}