summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/strtr_variation6.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/strings/strtr_variation6.phpt')
-rw-r--r--ext/standard/tests/strings/strtr_variation6.phpt20
1 files changed, 5 insertions, 15 deletions
diff --git a/ext/standard/tests/strings/strtr_variation6.phpt b/ext/standard/tests/strings/strtr_variation6.phpt
index fcc903d637..438eb168fa 100644
--- a/ext/standard/tests/strings/strtr_variation6.phpt
+++ b/ext/standard/tests/strings/strtr_variation6.phpt
@@ -8,10 +8,6 @@ Test strtr() function : usage variations - unexpected inputs for 'from' argument
echo "*** Testing strtr() function: with unexpected inputs for 'from' ***\n";
-//get an unset variable
-$unset_var = 'string_val';
-unset($unset_var);
-
//defining a class
class sample {
public function __toString() {
@@ -58,12 +54,6 @@ $from_arr = array (
// resource
/*17*/ $file_handle,
-
- // undefined variable
-/*18*/ @$undefined_var,
-
- // unset variable
-/*19*/ @$unset_var
);
//defining 'to' argument
@@ -84,7 +74,7 @@ for($index = 0; $index < count($from_arr); $index++) {
fclose($file_handle); //closing the file handle
?>
---EXPECT--
+--EXPECTF--
*** Testing strtr() function: with unexpected inputs for 'from' ***
-- Iteration 1 --
string(6) "a12atm"
@@ -113,14 +103,14 @@ string(6) "0a2atm"
-- Iteration 13 --
string(6) "012atm"
-- Iteration 14 --
+
+Deprecated: strtr(): Passing null to parameter #2 ($from) of type array|string is deprecated in %s on line %d
string(6) "012atm"
-- Iteration 15 --
+
+Deprecated: strtr(): Passing null to parameter #2 ($from) of type array|string is deprecated in %s on line %d
string(6) "012atm"
-- Iteration 16 --
string(6) "012ttm"
-- Iteration 17 --
strtr(): Argument #2 ($from) must be of type array|string, resource given
--- Iteration 18 --
-string(6) "012atm"
--- Iteration 19 --
-string(6) "012atm"