summaryrefslogtreecommitdiff
path: root/ext/mysqli/tests/mysqli_enable_rpl_parse.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mysqli/tests/mysqli_enable_rpl_parse.phpt')
-rw-r--r--ext/mysqli/tests/mysqli_enable_rpl_parse.phpt41
1 files changed, 0 insertions, 41 deletions
diff --git a/ext/mysqli/tests/mysqli_enable_rpl_parse.phpt b/ext/mysqli/tests/mysqli_enable_rpl_parse.phpt
deleted file mode 100644
index b2664d93f0..0000000000
--- a/ext/mysqli/tests/mysqli_enable_rpl_parse.phpt
+++ /dev/null
@@ -1,41 +0,0 @@
---TEST--
-mysqli_enable_rpl_parse()
---SKIPIF--
-<?php
-require_once('skipif.inc');
-require_once('skipifemb.inc');
-require_once('skipifconnectfailure.inc');
-if (!function_exists('mysqli_enable_rpl_parse'))
- die("skip mysqli_enable_rpl_parse() not available");
-?>
---FILE--
-<?php
- include "connect.inc";
-
- $tmp = NULL;
- $link = NULL;
-
- if (NULL !== ($tmp = @mysqli_enable_rpl_parse()))
- printf("[001] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp);
-
- if (NULL !== ($tmp = @mysqli_enable_rpl_parse($link)))
- printf("[002] Expecting NULL/NULL, got %s/%s\n", gettype($tmp), $tmp);
-
- if (!$link = mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
- printf("[003] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
- $host, $user, $db, $port, $socket);
- }
-
- if (!is_bool($tmp = mysqli_enable_rpl_parse($link)))
- printf("[004] Expecting boolean/[true|false] value, got %s/%s\n", gettype($tmp), $tmp);
-
- mysqli_close($link);
-
- if (NULL !== ($tmp = mysqli_enable_rpl_parse($link)))
- printf("[005] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
-
- print "done!";
-?>
---EXPECTF--
-Warning: mysqli_enable_rpl_parse(): Couldn't fetch mysqli in %s on line %d
-done! \ No newline at end of file