Пример #1
0
 /**
  * db command returns a key without props
  */
 public function testGetKey4()
 {
     $this->execw->setSocketMatcher('getjson', explode(' ', 'K'))->setExecImplementation(function ($command, &$output, &$retval) {
         $retval = 0;
         $output[] = '{"name":"K","type":"valuexxx"}';
     });
     $ret = $this->object->getKey('K');
     $this->assertEquals(array(), $ret);
 }