public function test_substitute_escape_quotes_with_connections_escape_method()
 {
     try {
         $conn = ConnectionManager::get_connection();
     } catch (DatabaseException $e) {
         $this->mark_test_skipped('failed to connect. ' . $e->getMessage());
     }
     $a = new Expressions(null, 'name=?', "Tito's Guild");
     $a->set_connection($conn);
     $escaped = $conn->escape("Tito's Guild");
     $this->assert_equals("name={$escaped}", $a->to_s(true));
 }
 public function test_substitute_escape_quotes_with_connections_escape_method()
 {
     $conn = ActiveRecord\ConnectionManager::get_connection();
     $a = new Expressions(null, 'name=?', "Tito's Guild");
     $a->set_connection($conn);
     $escaped = $conn->escape("Tito's Guild");
     $this->assert_equals("name='{$escaped}'", $a->to_s(true));
 }