mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00

Took the old PHP 3 regression testing framework and rewrote it in PHP. Should work on both Windows and UNIX, however I have not tested it on Windows. See tests/README for how to write tests. Added the PHP 3 tests and converted most of them.
19 lines
230 B
PHP
19 lines
230 B
PHP
--TEST--
|
|
Test split()
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
$a=split("[[:space:]]","this is a
|
|
test");
|
|
echo count($a) . "\n";
|
|
for ($i = 0; $i < count($a); $i++) {
|
|
echo $a[$i] . "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
4
|
|
this
|
|
is
|
|
a
|
|
test
|