mirror of
https://github.com/php/php-src.git
synced 2024-09-22 10:27:25 +00:00
smaller tests already exists
This commit is contained in:
parent
1aa5830044
commit
9645bbbbee
@ -1,27 +0,0 @@
|
||||
--TEST--
|
||||
Test stripos() function : basic functionality
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : int stripos ( string $haystack, string $needle [, int $offset] );
|
||||
* Description: Find position of first occurrence of a case-insensitive string
|
||||
* Source code: ext/standard/string.c
|
||||
*/
|
||||
|
||||
/* Test stripos() function by providing all the parameters */
|
||||
|
||||
echo "*** Test stripos() : basic functionality ***\n";
|
||||
/* Initialize all required variables */
|
||||
$haystack = 'string';
|
||||
$needle = 'ring';
|
||||
$offset = 3;
|
||||
/* Calling stripos() with default arguments */
|
||||
var_dump( stripos($haystack, $needle) );
|
||||
/* Calling stripos() with all arguments */
|
||||
var_dump( stripos($haystack, $needle, $offset) );
|
||||
echo "*** Done ***\n";
|
||||
?>
|
||||
--EXPECTF--
|
||||
*** Test stripos() : basic functionality ***
|
||||
int(2)
|
||||
bool(false)
|
||||
*** Done ***
|
Loading…
Reference in New Issue
Block a user