/** * XXX: Calling "setType" for writing key value (?) * @return string */ public function write($value) { if ($value === NULL) { $this->database->deleteKey($this->key); } else { $this->database->setType($this->key, strval($value)); } }
/** * Implement testDeleteKey() */ public function testDeleteKey() { $this->execw->setCommandMatcher('delete', array('K'))->setExecImplementation(array($this, 'exec_success')); $ret = $this->object->deleteKey('K'); $this->assertEquals(TRUE, $ret); }