]> granicus.if.org Git - php/commitdiff
new test (class which extends mysqli. currently this test fails :( )
authorGeorg Richter <georg@php.net>
Tue, 18 Feb 2003 00:42:38 +0000 (00:42 +0000)
committerGeorg Richter <georg@php.net>
Tue, 18 Feb 2003 00:42:38 +0000 (00:42 +0000)
ext/mysqli/tests/056.phpt [new file with mode: 0644]

diff --git a/ext/mysqli/tests/056.phpt b/ext/mysqli/tests/056.phpt
new file mode 100644 (file)
index 0000000..cee7df1
--- /dev/null
@@ -0,0 +1,19 @@
+--TEST--
+extend mysqli 
+--FILE--
+<?php
+       include "connect.inc";
+
+       class foobar extends mysqli {
+               function test () {
+                       return ("I like MySQL 4.1");
+               }
+       }
+
+       $foo = new foobar();
+       $foo->connect("localhost", $user, $passwd);
+       $foo->close();
+       printf("%s\n", $foo->test());
+?>
+--EXPECT--
+I like MySQL 4.1