diff options
| author | Georg Richter <georg@php.net> | 2003-02-12 10:40:19 +0000 |
|---|---|---|
| committer | Georg Richter <georg@php.net> | 2003-02-12 10:40:19 +0000 |
| commit | 91eeae5e1dbb757d1563a077c7d790b5f832c83f (patch) | |
| tree | 7ec87ecb5e5169ca35b6098b22adc44f93be0097 /ext/mysqli/tests/041.phpt | |
| parent | 27063940767a66c9ae4df187b05cef7f37c4adb6 (diff) | |
| download | php-git-91eeae5e1dbb757d1563a077c7d790b5f832c83f.tar.gz | |
added new tests
Diffstat (limited to 'ext/mysqli/tests/041.phpt')
| -rw-r--r-- | ext/mysqli/tests/041.phpt | 24 |
1 files changed, 24 insertions, 0 deletions
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-- +<?php + + include "connect.inc"; + + /*** test mysqli_connect 127.0.0.1 ***/ + $link = mysqli_connect("localhost", $user, $passwd); + + mysqli_select_db($link, "test"); + + mysqli_query($link, "DROP TABLE IF EXISTS test_warnings"); + + mysqli_query($link, "CREATE TABLE test_warnings (a int not null"); + + mysqli_query($link, "INSERT INTO test_warnings VALUES (1),(2),(NULL)"); + $num = mysqli_warning_count($link); + var_dump($num); + + mysqli_close($link); +?> +--EXPECT-- +int(1) |
