From 8cc5e4740274f33a0cea9c6c70cf377e9c5e72cc Mon Sep 17 00:00:00 2001 From: Ulf Wendel Date: Wed, 10 Oct 2007 10:20:11 +0000 Subject: [PATCH] Last bunch of new tests. --- ext/mysqli/tests/mysqli_thread_id.phpt | 40 ++++++++++++ ext/mysqli/tests/mysqli_thread_safe.phpt | 16 +++++ ext/mysqli/tests/mysqli_unclonable.phpt | 23 +++++++ ext/mysqli/tests/mysqli_use_result.phpt | 62 +++++++++++++++++++ ext/mysqli/tests/mysqli_warning_count.phpt | 48 ++++++++++++++ .../tests/mysqli_warning_unclonable.phpt | 37 +++++++++++ 6 files changed, 226 insertions(+) create mode 100644 ext/mysqli/tests/mysqli_thread_id.phpt create mode 100644 ext/mysqli/tests/mysqli_thread_safe.phpt create mode 100644 ext/mysqli/tests/mysqli_unclonable.phpt create mode 100644 ext/mysqli/tests/mysqli_use_result.phpt create mode 100644 ext/mysqli/tests/mysqli_warning_count.phpt create mode 100644 ext/mysqli/tests/mysqli_warning_unclonable.phpt diff --git a/ext/mysqli/tests/mysqli_thread_id.phpt b/ext/mysqli/tests/mysqli_thread_id.phpt new file mode 100644 index 0000000000..6735489444 --- /dev/null +++ b/ext/mysqli/tests/mysqli_thread_id.phpt @@ -0,0 +1,40 @@ +--TEST-- +mysqli_thread_id() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: mysqli_thread_id(): Couldn't fetch mysqli in %s on line %d +done! \ No newline at end of file diff --git a/ext/mysqli/tests/mysqli_thread_safe.phpt b/ext/mysqli/tests/mysqli_thread_safe.phpt new file mode 100644 index 0000000000..0777c2abd7 --- /dev/null +++ b/ext/mysqli/tests/mysqli_thread_safe.phpt @@ -0,0 +1,16 @@ +--TEST-- +mysqli_thread_safe() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +done! \ No newline at end of file diff --git a/ext/mysqli/tests/mysqli_unclonable.phpt b/ext/mysqli/tests/mysqli_unclonable.phpt new file mode 100644 index 0000000000..73894f4f2a --- /dev/null +++ b/ext/mysqli/tests/mysqli_unclonable.phpt @@ -0,0 +1,23 @@ +--TEST-- +Trying to clone mysqli object +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Fatal error: Trying to clone an uncloneable object of class mysqli in %s on line %d \ No newline at end of file diff --git a/ext/mysqli/tests/mysqli_use_result.phpt b/ext/mysqli/tests/mysqli_use_result.phpt new file mode 100644 index 0000000000..2f53aeae2a --- /dev/null +++ b/ext/mysqli/tests/mysqli_use_result.phpt @@ -0,0 +1,62 @@ +--TEST-- +mysqli_use_result() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: mysqli_data_seek(): Function cannot be used with MYSQL_USE_RESULT in %s on line %d + +Warning: mysqli_use_result(): Couldn't fetch mysqli in %s on line %d +done! \ No newline at end of file diff --git a/ext/mysqli/tests/mysqli_warning_count.phpt b/ext/mysqli/tests/mysqli_warning_count.phpt new file mode 100644 index 0000000000..c1663131b5 --- /dev/null +++ b/ext/mysqli/tests/mysqli_warning_count.phpt @@ -0,0 +1,48 @@ +--TEST-- +mysqli_warning_count() +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Warning: mysqli_warning_count(): Couldn't fetch mysqli in %s on line %d +done! \ No newline at end of file diff --git a/ext/mysqli/tests/mysqli_warning_unclonable.phpt b/ext/mysqli/tests/mysqli_warning_unclonable.phpt new file mode 100644 index 0000000000..bdbc0e2f70 --- /dev/null +++ b/ext/mysqli/tests/mysqli_warning_unclonable.phpt @@ -0,0 +1,37 @@ +--TEST-- +Trying to clone mysqli_warning object +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +Fatal error: Trying to clone an uncloneable object of class mysqli_warning in %s on line %d \ No newline at end of file -- 2.50.1