1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 21:41:22 +02:00
Files
archived-php-src/ext/standard/tests/strings/strpbrk_error.phpt
Nikita Popov 25f1c405ff Update ext/standard parameter names
Closes GH-6214.
2020-09-29 16:49:46 +02:00

18 lines
412 B
PHP

--TEST--
Test strpbrk() function : error conditions
--FILE--
<?php
$haystack = 'This is a Simple text.';
echo "-- Testing strpbrk() function with empty second argument --\n";
try {
strpbrk($haystack, '');
} catch (\ValueError $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
-- Testing strpbrk() function with empty second argument --
strpbrk(): Argument #2 ($characters) must be a non-empty string