]> granicus.if.org Git - php/commitdiff
test for mysql_fetch_row (oo-style)
authorGeorg Richter <georg@php.net>
Mon, 17 Feb 2003 16:19:49 +0000 (16:19 +0000)
committerGeorg Richter <georg@php.net>
Mon, 17 Feb 2003 16:19:49 +0000 (16:19 +0000)
ext/mysqli/tests/049.phpt [new file with mode: 0644]

diff --git a/ext/mysqli/tests/049.phpt b/ext/mysqli/tests/049.phpt
new file mode 100644 (file)
index 0000000..04e705d
--- /dev/null
@@ -0,0 +1,23 @@
+--TEST--
+mysql_fetch_row (OO-Style) 
+--FILE--
+<?php
+       include "connect.inc";
+       
+       /*** test mysqli_connect 127.0.0.1 ***/
+       $mysql = mysqli_connect("localhost", $user, $passwd);
+
+       $mysql->select_db("test");              
+       $result = $mysql->query("SELECT CURRENT_USER()");
+       $row = $result->fetch_row();
+       $result->close();
+       
+       var_dump($row);
+
+       $mysql->close();
+?>
+--EXPECT--
+array(1) {
+  [0]=>
+  string(14) "root@localhost"
+}