public function test_encoding()
 {
     $info = ActiveRecord\Connection::parse_connection_url('mysql://*****:*****@127.0.0.1/test?charset=utf8');
     $this->assert_equals('utf8', $info->charset);
 }
Esempio n. 2
0
 public function test_parse_connection_url_with_decode_option()
 {
     $info = ActiveRecord\Connection::parse_connection_url('mysql://h%20az:h%40i@127.0.0.1/test?decode=true');
     $this->assert_equals('h az', $info->user);
     $this->assert_equals('h@i', $info->pass);
 }