public function testQuoteArr()
 {
     $this->connection->connect();
     $this->assertEquals(array('null', "'1'", "'0'", "fo'o'bar", "123", "12.3", "'12.3'", "'12'"), $this->connection->quoteArr(array(null, true, false, new Expression("fo'o'bar"), 123, 12.3, '12.3', '12')));
 }
 public function testCreateFunction()
 {
     Helper::create($this->conn)->createFunction('my_udf', 'INT', 'test_udf.so')->execute();
     $this->assertSame(array(array('MY_UDF()' => '42')), $this->conn->query('SELECT MY_UDF()')->getStored());
     Helper::create($this->conn)->dropFunction('my_udf')->execute();
 }