config() public method

Add configuration and write data in json format.
public config ( string $key = null, string $value = null, string $options = true ) : void
$key string (server)
$value string value of key
$options string [optional]
return void
Beispiel #1
0
 public function testFindNotFound()
 {
     $this->request->params += array('server' => null);
     $library = new Library(array('request' => $this->request, 'classes' => $this->classes));
     $library->conf = $this->testConf;
     $library->config('server', 'localhost');
     $library->find();
     $expected = "No plugins at localhost\n";
     $result = $library->response->output;
     $this->assertEqual($expected, $result);
 }