float(NAN)
float(NAN)
-Warning: acos() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(NAN)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(NAN)
-float(1.570796327)
-float(0)
-float(1.570796327)
---UEXPECTF--
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-
Warning: acos() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(NAN)
float(3.847562739)
float(3.847562739)
-Warning: acosh() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(7.60090221)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(7.60090221)
-float(NAN)
-float(0)
-float(NAN)
---UEXPECTF--
-float(3.828168471)
-float(NAN)
-float(3.847562739)
-float(NAN)
-float(3.828168471)
-float(3.828168471)
-float(3.828168471)
-float(3.847562739)
-float(3.847562739)
-
Warning: acosh() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(7.60090221)
float(NAN)
float(NAN)
-Warning: asin() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(NAN)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(NAN)
-float(0)
-float(1.570796327)
-float(0)
---UEXPECTF--
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-
Warning: asin() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(NAN)
float(3.848471992)
float(3.848471992)
-Warning: asinh() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(7.60090271)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(7.60090271)
-float(0)
-float(0.881373587)
-float(0)
---UEXPECTF--
-float(3.829113652)
-float(-3.829113652)
-float(3.848471992)
-float(-3.848471992)
-float(3.829113652)
-float(3.829113652)
-float(3.829113652)
-float(3.848471992)
-float(3.848471992)
-
Warning: asinh() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(7.60090271)
}
}
?>
---EXPECTF--
+--EXPECT--
Y:23 X:23 float(0.78539816339745)
Y:23 X:-23 float(2.3561944901923)
Y:23 X:23.45 float(0.77571063007847)
float(1.528178225)
float(1.528178225)
-Warning: atan() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(1.569796327)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(1.569796327)
-float(0)
-float(0.7853981634)
-float(0)
---UEXPECTF--
-float(1.527345431)
-float(-1.527345431)
-float(1.528178225)
-float(-1.528178225)
-float(1.527345431)
-float(1.527345431)
-float(1.527345431)
-float(1.528178225)
-float(1.528178225)
-
Warning: atan() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(1.569796327)
float(NAN)
float(NAN)
-Warning: atanh() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(NAN)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(NAN)
-float(0)
-float(INF)
-float(0)
---UEXPECTF--
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-float(NAN)
-
Warning: atanh() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(NAN)
}
?>
---EXPECTF--
+--EXPECT--
...from base is 2
......to base is 2
.........value= 10 res = 10
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(455)
int(0)
int(32766)
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(455)
int(0)
int(32766)
echo "OK";
?>
--EXPECT--
-string(2775) "-2,000.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
-OK
---UEXPECT--
unicode(2775) "-2,000.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
OK
?>
--EXPECTF--
float(1%f)
-string(%d) "d:1%s;"
-float(1%f)
-float(-1%f)
-string(%d) "d:-1%s;"
-float(-1%f)
-float(-INF)
-string(7) "d:-INF;"
-float(-INF)
-float(INF)
-string(6) "d:INF;"
-float(INF)
-float(NAN)
-string(6) "d:NAN;"
-float(NAN)
---UEXPECTF--
-float(1%f)
unicode(%d) "d:1%s;"
float(1%f)
float(-1%f)
M_SQRT2 : 1.414213[0-9]*
M_SQRT1_2 : 0.707106[0-9]*
M_SQRT3 : 1.732050[0-9]*
-
float(-0.1117112391)
float(-0.1117112391)
-Warning: cos() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(0.5623790763)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(0.5623790763)
-float(1)
-float(0.5403023059)
-float(1)
---UEXPECTF--
-float(-0.5328330203)
-float(-0.5328330203)
-float(-0.1117112391)
-float(-0.1117112391)
-float(-0.5328330203)
-float(-0.5328330203)
-float(-0.5328330203)
-float(-0.1117112391)
-float(-0.1117112391)
-
Warning: cos() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(0.5623790763)
float(7641446995)
float(7641446995)
-Warning: cosh() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(INF)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(INF)
-float(1)
-float(1.543080635)
-float(1)
---UEXPECTF--
-float(4872401723)
-float(4872401723)
-float(7641446995)
-float(7641446995)
-float(4872401723)
-float(4872401723)
-float(4872401723)
-float(7641446995)
-float(7641446995)
-
Warning: cosh() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(INF)
?>
--EXPECTF--
-string(4) "1010"
-string(12) "111101101110"
-string(12) "111101101110"
-string(2) "11"
-string(7) "1011111"
-string(4) "1010"
-string(12) "111101101110"
-string(2) "11"
-string(6) "100111"
-string(1) "0"
-string(1) "1"
-string(1) "0"
-string(1) "0"
---UEXPECTF--
unicode(4) "1010"
unicode(12) "111101101110"
unicode(12) "111101101110"
}
?>
--EXPECTF--
-string(1) "a"
-string(3) "f6e"
-string(3) "f6e"
-string(1) "3"
-string(2) "5f"
-string(1) "a"
-string(3) "f6e"
-string(1) "3"
-string(2) "27"
-string(1) "0"
-string(1) "1"
-string(1) "0"
-string(1) "0"
---UEXPECTF--
unicode(1) "a"
unicode(3) "f6e"
unicode(3) "f6e"
}
?>
--EXPECTF--
-string(2) "12"
-string(4) "7556"
-string(4) "7556"
-string(1) "3"
-string(3) "137"
-string(2) "12"
-string(4) "7556"
-string(1) "3"
-string(2) "47"
-string(1) "0"
-string(1) "1"
-string(1) "0"
-string(1) "0"
---UEXPECTF--
unicode(2) "12"
unicode(4) "7556"
unicode(4) "7556"
float(0.4092797096)
float(0.4092797096)
-Warning: deg2rad() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(17.45329252)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(17.45329252)
-float(0)
-float(0.01745329252)
-float(0)
---UEXPECTF--
-float(0.401425728)
-float(-0.401425728)
-float(0.4092797096)
-float(-0.4092797096)
-float(0.401425728)
-float(0.401425728)
-float(0.401425728)
-float(0.4092797096)
-float(0.4092797096)
-
Warning: deg2rad() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(17.45329252)
}
}
?>
---EXPECTF--
+--EXPECT--
iteration 0
float(0)
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(18433668)
int(126895953)
float(142929835591)
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)
bool(false)
-
-
Warning: is_finite() expects exactly 1 parameter, 0 given in %s on line 2
Warning: is_finite() expects exactly 1 parameter, 3 given in %s on line 3
-
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
bool(false)
bool(true)
bool(false)
-
-
-
?>
---EXPECTF--
+--EXPECT--
bool(false)
bool(false)
bool(false)
bool(false)
bool(false)
bool(true)
-
-
-
Warning: is_nan() expects exactly 1 parameter, 0 given in %s on line 2
Warning: is_nan() expects exactly 1 parameter, 3 given in %s on line 3
-
-
-
-
PASSED
PASSED
MATHS test script completed
-
-
-
"23",
"23.45",
"2.345e1",
- "nonsense",
+ "nonsense",
"1000",
"1000ABC",
null,
true,
- false);
+ false);
for ($i = 0; $i < count($values); $i++) {
$res = log10($values[$i]);
float(1.370142847)
float(1.370142847)
-Warning: log10() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(3)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(3)
-float(-INF)
-float(0)
-float(-INF)
---UEXPECTF--
-float(1.361727836)
-float(NAN)
-float(1.370142847)
-float(NAN)
-float(1.361727836)
-float(1.361727836)
-float(1.361727836)
-float(1.370142847)
-float(1.370142847)
-
Warning: log10() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(3)
}
?>
---EXPECTF--
+--EXPECT--
LOG tests...no base
float(3.1354942159291)
float(NAN)
var_dump(mt_getrandmax());
?>
--EXPECTF--
-int(%d)
\ No newline at end of file
+int(%d)
}
}
?>
---EXPECTF--
+--EXPECT--
mt_rand() tests with default min and max value (i.e 0 thru 2147483647)
PASSED: range min = 0 max = 2147483647
Warning: mt_rand() expects exactly 2 parameters, 3 given in %s on line %d
-Warning: mt_rand() expects parameter 1 to be long, string given in %s on line %d
-
-Warning: mt_rand() expects parameter 2 to be long, string given in %s on line %d
---UEXPECTF--
-
-Warning: mt_rand() expects exactly 2 parameters, 1 given in %s on line %d
-
-Warning: mt_rand() expects exactly 2 parameters, 3 given in %s on line %d
-
Warning: mt_rand() expects parameter 1 to be long, Unicode string given in %s on line %d
Warning: mt_rand() expects parameter 2 to be long, Unicode string given in %s on line %d
var_dump(mt_srand(false));
var_dump(mt_srand(NULL));
?>
---EXPECTF--
+--EXPECT--
+NULL
NULL
NULL
NULL
NULL
NULL
NULL
-NULL
\ No newline at end of file
Warning: mt_srand() expects at most 1 parameter, 2 given in %s on line %d
NULL
-Warning: mt_srand() expects parameter 1 to be long, string given in %s on line %d
-NULL
-
-Notice: A non well formed numeric value encountered in %s on line %d
-NULL
---UEXPECTF--
-Warning: mt_srand() expects at most 1 parameter, 2 given in %s on line %d
-NULL
-
Warning: mt_srand() expects parameter 1 to be long, Unicode string given in %s on line %d
NULL
var_dump($res);
}
?>
---EXPECTF--
- number_format tests.....default
-string(5) "1,235"
-string(6) "-1,235"
-string(10) "12,346,578"
-string(11) "-12,345,679"
-string(11) "305,450,479"
-string(11) "402,653,183"
-string(11) "123,456,789"
-string(3) "123"
-string(3) "123"
-string(1) "0"
-string(1) "1"
-string(1) "0"
-
- number_format tests.....with two dp
-string(8) "1,234.57"
-string(9) "-1,234.57"
-string(13) "12,346,578.00"
-string(14) "-12,345,678.90"
-string(14) "305,450,479.00"
-string(14) "402,653,183.00"
-string(14) "123,456,789.00"
-string(6) "123.46"
-string(6) "123.46"
-string(4) "0.00"
-string(4) "1.00"
-string(4) "0.00"
-
- number_format tests.....English format
-string(8) "1 234.57"
-string(9) "-1 234.57"
-string(13) "12 346 578.00"
-string(14) "-12 345 678.90"
-string(14) "305 450 479.00"
-string(14) "402 653 183.00"
-string(14) "123 456 789.00"
-string(6) "123.46"
-string(6) "123.46"
-string(4) "0.00"
-string(4) "1.00"
-string(4) "0.00"
-
- number_format tests.....French format
-string(8) "1 234,57"
-string(9) "-1 234,57"
-string(13) "12 346 578,00"
-string(14) "-12 345 678,90"
-string(14) "305 450 479,00"
-string(14) "402 653 183,00"
-string(14) "123 456 789,00"
-string(6) "123,46"
-string(6) "123,46"
-string(4) "0,00"
-string(4) "1,00"
-string(4) "0,00"
---UEXPECTF--
+--EXPECT--
number_format tests.....default
unicode(5) "1,235"
unicode(6) "-1,235"
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(14489)
int(253)
int(36947879)
int(823384)
int(1)
int(0)
-int(0)
\ No newline at end of file
+int(0)
// N.B pi() ignores all specified arguments no error
// messages are produced if arguments are spcified.
?>
---EXPECTF--
+--EXPECT--
3.1415926535898
3.1415926535898
var_dump($res);
}
?>
---EXPECTF--
+--EXPECT--
int(279841)
int(279841)
float(302392.75950625)
float(302392.75950625)
int(0)
int(1)
-int(0)
\ No newline at end of file
+int(0)
Warning: pow() expects exactly 2 parameters, 1 given in %s line 3
Warning: pow() expects exactly 2 parameters, 3 given in %s line 4
-
-
float(1343.58603)
float(1343.58603)
-Warning: rad2deg() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(57295.77951)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(57295.77951)
-float(0)
-float(57.29577951)
-float(0)
---UEXPECTF--
-float(1317.802929)
-float(-1317.802929)
-float(1343.58603)
-float(-1343.58603)
-float(1317.802929)
-float(1317.802929)
-float(1317.802929)
-float(1343.58603)
-float(1343.58603)
-
Warning: rad2deg() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(57295.77951)
rand(1, "hundered");
?>
--EXPECTF--
-
-Warning: rand() expects exactly 2 parameters, 1 given in %s on line %d
-
-Warning: rand() expects exactly 2 parameters, 3 given in %s on line %d
-
-Warning: rand() expects parameter 1 to be long, string given in %s on line %d
-
-Warning: rand() expects parameter 2 to be long, string given in %s on line %d
---UEXPECTF--
Warning: rand() expects exactly 2 parameters, 1 given in %s on line %d
Warning: rand() expects exactly 2 parameters, 3 given in %s on line %d
float(-0.9937407102)
float(-0.9937407102)
-Warning: sin() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(0.8268795405)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(0.8268795405)
-float(0)
-float(0.8414709848)
-float(0)
---UEXPECTF--
-float(-0.8462204042)
-float(0.8462204042)
-float(-0.9937407102)
-float(0.9937407102)
-float(-0.8462204042)
-float(-0.8462204042)
-float(-0.8462204042)
-float(-0.9937407102)
-float(-0.9937407102)
-
Warning: sin() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(0.8268795405)
float(7641446995)
float(7641446995)
-Warning: sinh() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(INF)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(INF)
-float(0)
-float(1.175201194)
-float(0)
---UEXPECTF--
-float(4872401723)
-float(-4872401723)
-float(7641446995)
-float(-7641446995)
-float(4872401723)
-float(4872401723)
-float(4872401723)
-float(7641446995)
-float(7641446995)
-
Warning: sinh() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(INF)
var_dump(srand(false));
var_dump(srand(NULL));
?>
---EXPECTF--
+--EXPECT--
+NULL
NULL
NULL
NULL
NULL
NULL
NULL
-NULL
\ No newline at end of file
Warning: mt_srand() expects at most 1 parameter, 2 given in %s on line %d
NULL
-Warning: mt_srand() expects parameter 1 to be long, string given in %s on line %d
-NULL
-
-Notice: A non well formed numeric value encountered in %s on line %d
-NULL
---UEXPECTF--
-Warning: mt_srand() expects at most 1 parameter, 2 given in %s on line %d
-NULL
-
Warning: mt_srand() expects parameter 1 to be long, Unicode string given in %s on line %d
NULL
float(8.895619796)
float(8.895619796)
-Warning: tan() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(1.470324156)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(1.470324156)
-float(0)
-float(1.557407725)
-float(0)
---UEXPECTF--
-float(1.588153083)
-float(-1.588153083)
-float(8.895619796)
-float(-8.895619796)
-float(1.588153083)
-float(1.588153083)
-float(1.588153083)
-float(8.895619796)
-float(8.895619796)
-
Warning: tan() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(1.470324156)
float(1)
float(1)
-Warning: tanh() expects parameter 1 to be double, string given in %s on line 27
-NULL
-float(1)
-
-Notice: A non well formed numeric value encountered in %s on line 27
-float(1)
-float(0)
-float(0.761594156)
-float(0)
---UEXPECTF--
-float(1)
-float(-1)
-float(1)
-float(-1)
-float(1)
-float(1)
-float(1)
-float(1)
-float(1)
-
Warning: tanh() expects parameter 1 to be double, Unicode string given in %s on line 27
NULL
float(1)