connect('test', []); $this->assertInstanceOf('common_persistence_KeyValuePersistence', $persistence); return $persistence; } /** * @depends testConnect * @author Lionel Lecaque, lionel@taotesting.com * @param \common_persistence_KeyValuePersistence $persistence */ public function testSet($persistence) { $this->assertFalse($persistence->set('fakeKeyName', 'value')); } /** * @depends testConnect * @author Lionel Lecaque, lionel@taotesting.com * @param \common_persistence_KeyValuePersistence $persistence */ public function testGet($persistence) { $this->assertFalse($persistence->get('fakeKeyName')); } /** * @depends testConnect * @author Lionel Lecaque, lionel@taotesting.com * @param \common_persistence_KeyValuePersistence $persistence */ public function testExists($persistence) { $this->assertFalse($persistence->exists('fakeKeyName')); } /** * @depends testConnect * @author Lionel Lecaque, lionel@taotesting.com * @param \common_persistence_KeyValuePersistence $persistence */ public function testDel($persistence) { $this->assertTrue($persistence->del('fakeKeyName')); } /** * @depends testConnect * @author Lionel Lecaque, lionel@taotesting.com * @param \common_persistence_KeyValuePersistence $persistence */ public function testPurge($persistence) { $this->assertTrue($persistence->purge()); } }