Exemplo n.º 1
0
 /**
  * Test if Endpoints can be created for all databases
  */
 public function testCreateEndpointForSystemDatabaseOnlyModifyItAndDeleteIt()
 {
     $endpoint = 'tcp://127.0.0.1:8532';
     $databases = array('_system');
     $response = Endpoint::create($this->connection, $endpoint, $databases);
     $this->assertTrue($response['error'] == false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($response, 1));
     $databases = array();
     $response = Endpoint::modify($this->connection, $endpoint, $databases);
     $this->assertTrue($response['error'] == false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($response, 1));
     $response = Endpoint::delete($this->connection, $endpoint);
     $this->assertTrue($response['error'] == false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($response, 1));
 }