From 91eeae5e1dbb757d1563a077c7d790b5f832c83f Mon Sep 17 00:00:00 2001 From: Georg Richter Date: Wed, 12 Feb 2003 10:40:19 +0000 Subject: [PATCH] added new tests --- ext/mysqli/tests/036.phpt | 43 +++++++++++++++++++++++++++++++++++++++ ext/mysqli/tests/037.phpt | 34 +++++++++++++++++++++++++++++++ ext/mysqli/tests/038.phpt | 31 ++++++++++++++++++++++++++++ ext/mysqli/tests/039.phpt | 24 ++++++++++++++++++++++ ext/mysqli/tests/040.phpt | 31 ++++++++++++++++++++++++++++ ext/mysqli/tests/041.phpt | 24 ++++++++++++++++++++++ 6 files changed, 187 insertions(+) create mode 100644 ext/mysqli/tests/036.phpt create mode 100644 ext/mysqli/tests/037.phpt create mode 100644 ext/mysqli/tests/038.phpt create mode 100644 ext/mysqli/tests/039.phpt create mode 100644 ext/mysqli/tests/040.phpt create mode 100644 ext/mysqli/tests/041.phpt diff --git a/ext/mysqli/tests/036.phpt b/ext/mysqli/tests/036.phpt new file mode 100644 index 0000000000..080c6e32e4 --- /dev/null +++ b/ext/mysqli/tests/036.phpt @@ -0,0 +1,43 @@ +--TEST-- +function test: mysqli_insert_id() +--FILE-- + +--EXPECT-- +array(2) { + [0]=> + int(1) + [1]=> + bool(true) +} diff --git a/ext/mysqli/tests/037.phpt b/ext/mysqli/tests/037.phpt new file mode 100644 index 0000000000..f8b8a13f1a --- /dev/null +++ b/ext/mysqli/tests/037.phpt @@ -0,0 +1,34 @@ +--TEST-- +function test: mysqli_field_count() +--FILE-- + +--EXPECT-- +array(2) { + [0]=> + int(0) + [1]=> + int(2) +} diff --git a/ext/mysqli/tests/038.phpt b/ext/mysqli/tests/038.phpt new file mode 100644 index 0000000000..858b3e3393 --- /dev/null +++ b/ext/mysqli/tests/038.phpt @@ -0,0 +1,31 @@ +--TEST-- +function test: mysqli_num_fields() +--FILE-- + +--EXPECT-- +int(2) diff --git a/ext/mysqli/tests/039.phpt b/ext/mysqli/tests/039.phpt new file mode 100644 index 0000000000..6ddb37bc5f --- /dev/null +++ b/ext/mysqli/tests/039.phpt @@ -0,0 +1,24 @@ +--TEST-- +function test: mysqli_num_fields() 2 +--FILE-- + +--EXPECT-- +int(2) diff --git a/ext/mysqli/tests/040.phpt b/ext/mysqli/tests/040.phpt new file mode 100644 index 0000000000..477e2a5274 --- /dev/null +++ b/ext/mysqli/tests/040.phpt @@ -0,0 +1,31 @@ +--TEST-- +function test: mysqli_num_rows() +--FILE-- + +--EXPECT-- +int(1) diff --git a/ext/mysqli/tests/041.phpt b/ext/mysqli/tests/041.phpt new file mode 100644 index 0000000000..6fb8ee7e3f --- /dev/null +++ b/ext/mysqli/tests/041.phpt @@ -0,0 +1,24 @@ +--TEST-- +function test: mysqli_warning_count() +--FILE-- + +--EXPECT-- +int(1) -- 2.50.1