php-src/ext/mysqli/tests/functions/mysqli_error.phpt
George Peter Banyard 6a4031b8c4
ext/mysqli: Work on making tests parallizable (#11814)
Batch 1 of amending tests, so they can run in parallel.

Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
2023-09-29 18:57:30 +01:00

32 lines
617 B
PHP

--TEST--
function test: mysqli_error
--EXTENSIONS--
mysqli
--SKIPIF--
<?php
require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
mysqli_check_skip_test();
?>
--FILE--
<?php
require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
/* Disable exceptions */
mysqli_report(MYSQLI_REPORT_OFF);
$link = default_mysqli_connect();
$error = mysqli_error($link);
var_dump($error);
mysqli_query($link, "SELECT * FROM non_existing_table");
$error = mysqli_error($link);
var_dump($error);
mysqli_close($link);
print "done!";
?>
--EXPECTF--
string(0) ""
string(%d) "%s"
done!