Пример #1
0
 /**
  * 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));
     }
 }
Пример #2
0
 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);
 }