assertFalse($this->driver->_exists('test_key')); $this->assertSame(false, $this->driver->get('test_key')); $this->driver->put('test_key', 'test_value'); $this->assertTrue($this->driver->_exists('test_key')); $this->assertEquals( 'test_value', $this->driver->get('test_key'), 'File ACM put and get' ); } public function test_purge() { $this->driver->put('test_key', 'test_value'); $this->assertEquals( 'test_value', $this->driver->get('test_key'), 'File ACM put and get' ); $this->driver->purge(); $this->assertSame(false, $this->driver->get('test_key')); } public function test_destroy() { $this->driver->put('first_key', 'first_value'); $this->driver->put('second_key', 'second_value'); $this->assertEquals( 'first_value', $this->driver->get('first_key') ); $this->assertEquals( 'second_value', $this->driver->get('second_key') ); $this->driver->destroy('first_key'); $this->assertFalse($this->driver->_exists('first_key')); $this->assertEquals( 'second_value', $this->driver->get('second_key') ); } }