mirror of
https://github.com/php/php-src.git
synced 2024-12-26 18:29:37 +08:00
new test (class which extends mysqli. currently this test fails :( )
This commit is contained in:
parent
2f604f67e8
commit
19a9b4f310
19
ext/mysqli/tests/056.phpt
Normal file
19
ext/mysqli/tests/056.phpt
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user