mirror of
https://github.com/php/php-src.git
synced 2024-10-15 13:32:39 +00:00
315f4f5658
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.
26 lines
301 B
PHP
26 lines
301 B
PHP
--TEST--
|
|
Simple math tests
|
|
--POST--
|
|
--GET--
|
|
--FILE--
|
|
<?php
|
|
echo abs(-1) . "\n";
|
|
echo abs(-1.5) . "\n";
|
|
echo abs("-1") . "\n";
|
|
echo abs("-1.5") . "\n";
|
|
echo ceil(-1.5) . "\n";
|
|
echo ceil(1.5) . "\n";
|
|
echo floor(-1.5) . "\n";
|
|
echo floor(1.5) . "\n";
|
|
?>
|
|
--EXPECT--
|
|
|
|
1
|
|
1.5
|
|
1
|
|
1.5
|
|
-1
|
|
2
|
|
-2
|
|
1
|