/** * 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)); } }
public function testSetType() { $this->execw->setCommandMatcher('settype', explode(' ', 'K T'))->setExecImplementation(array($this, 'exec_success')); $ret = $this->object->setType('K', 'T'); $this->assertEquals(TRUE, $ret); }