Ejemplo n.º 1
0
 /**
  * @group arnia-wrong-parameters-count
  */
 public function testCubridGetClientInfo2()
 {
     if (OUTPUT_FUNCTION_NAME == true) {
         echo "\r\nRunning: " . __FUNCTION__ . " = ";
     }
     try {
         cubrid_get_client_info(1);
         $this->assertTrue(FALSE, "Expected Exception not thrown.");
     } catch (Exception $e) {
         //echo $e->getMessage();
         $this->assertEquals(0, cubrid_error_code());
         $this->assertEquals(0, cubrid_error_code_facility());
         $this->assertEquals('', cubrid_error_msg());
     }
 }
Ejemplo n.º 2
0
function sql_client_info($link = null)
{
    $result = cubrid_get_client_info();
    return $result;
}