Skip to content

Commit

Permalink
Ensure charset in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamil-tekiela committed Jan 18, 2025
1 parent 252c0c9 commit 62974f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/mysqli/tests/functions/mysqli_character_set_name.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";

$link = default_mysqli_connect();

mysqli_set_charset($link, 'utf8mb4');

$result = mysqli_query($link, 'SELECT @@character_set_connection AS charset, @@collation_connection AS collation');
$tmp = mysqli_fetch_assoc($result);
mysqli_free_result($result);
Expand Down
2 changes: 2 additions & 0 deletions ext/mysqli/tests/functions/mysqli_character_set_name_oo.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";

$link = default_mysqli_connect();

$link->set_charset('utf8mb4');

$result = $link->query('SELECT @@character_set_connection AS charset, @@collation_connection AS collation');
$tmp = $result->fetch_assoc();
$result->free_result();
Expand Down

0 comments on commit 62974f5

Please sign in to comment.