/usr/share/php/tests/PHP_Compat/tests/function/tanh.phpt is in php-compat 1.6.0a3-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | --TEST--
Function -- tanh
--FILE--
<?php
require_once 'PHP/Compat/Function/tanh.php';
$tests = array(0, 0.1, 0.5, 1, M_PI, 30);
foreach ($tests as $test) {
printf("%.4f\n", php_compat_tanh($test));
}
?>
--EXPECT--
0.0000
0.0997
0.4621
0.7616
0.9963
1.0000
|