diff options
author | George Peter Banyard <girgias@php.net> | 2019-08-18 15:33:10 +0200 |
---|---|---|
committer | George Peter Banyard <girgias@php.net> | 2019-08-26 17:11:37 +0200 |
commit | 6d578482a933be7597b686b59a935b316161d251 (patch) | |
tree | 5bd9e3d2e2aa858ca77762e95397698686157b5d /ext/standard/tests/strings/stristr_variation2.phpt | |
parent | ade97c207c74609332e7d98450ef09b5caec0a70 (diff) | |
download | php-git-6d578482a933be7597b686b59a935b316161d251.tar.gz |
Improve strpos and strstr function family implementation
Diffstat (limited to 'ext/standard/tests/strings/stristr_variation2.phpt')
-rw-r--r-- | ext/standard/tests/strings/stristr_variation2.phpt | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/ext/standard/tests/strings/stristr_variation2.phpt b/ext/standard/tests/strings/stristr_variation2.phpt index fd842d1106..dd0b34f883 100644 --- a/ext/standard/tests/strings/stristr_variation2.phpt +++ b/ext/standard/tests/strings/stristr_variation2.phpt @@ -84,7 +84,7 @@ fclose($file_handle); //closing the file handle ?> ===DONE=== ---EXPECTF-- +--EXPECT-- *** Testing stristr() function: with unexpected inputs for 'needle' argument *** -- Iteration 1 -- bool(false) @@ -109,33 +109,21 @@ stristr() expects parameter 2 to be string, array given -- Iteration 11 -- bool(false) -- Iteration 12 -- - -Warning: stristr(): Empty needle in %s on line %d -bool(false) +string(11) "Hello World" -- Iteration 13 -- bool(false) -- Iteration 14 -- - -Warning: stristr(): Empty needle in %s on line %d -bool(false) +string(11) "Hello World" -- Iteration 15 -- - -Warning: stristr(): Empty needle in %s on line %d -bool(false) +string(11) "Hello World" -- Iteration 16 -- - -Warning: stristr(): Empty needle in %s on line %d -bool(false) +string(11) "Hello World" -- Iteration 17 -- bool(false) -- Iteration 18 -- stristr() expects parameter 2 to be string, resource given -- Iteration 19 -- - -Warning: stristr(): Empty needle in %s on line %d -bool(false) +string(11) "Hello World" -- Iteration 20 -- - -Warning: stristr(): Empty needle in %s on line %d -bool(false) +string(11) "Hello World" ===DONE=== |