diff options
Diffstat (limited to 'ext/standard/tests/strings/stristr_variation2.phpt')
-rw-r--r-- | ext/standard/tests/strings/stristr_variation2.phpt | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/ext/standard/tests/strings/stristr_variation2.phpt b/ext/standard/tests/strings/stristr_variation2.phpt index fdc48a0922..72d5a93df8 100644 --- a/ext/standard/tests/strings/stristr_variation2.phpt +++ b/ext/standard/tests/strings/stristr_variation2.phpt @@ -5,10 +5,6 @@ Test stristr() function : usage variations - test values for $needle argument echo "*** Testing stristr() function: with unexpected inputs for 'needle' argument ***\n"; -//get an unset variable -$unset_var = 'string_val'; -unset($unset_var); - //defining a class class sample { public function __toString() { @@ -44,21 +40,11 @@ $inputs = array ( TRUE, FALSE, - // null values -/*15*/ NULL, - null, - // objects /*17*/ new sample(), // resource /*18*/ $file_handle, - - // undefined variable -/*19*/ @$undefined_var, - - // unset variable -/*20*/ @$unset_var ); //defining '$pad_length' argument @@ -110,14 +96,6 @@ bool(false) -- Iteration 14 -- string(11) "Hello World" -- Iteration 15 -- -string(11) "Hello World" --- Iteration 16 -- -string(11) "Hello World" --- Iteration 17 -- bool(false) --- Iteration 18 -- +-- Iteration 16 -- stristr(): Argument #2 ($needle) must be of type string, resource given --- Iteration 19 -- -string(11) "Hello World" --- Iteration 20 -- -string(11) "Hello World" |