Return to is_infinite_basic.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / math |
1.1 misho 1: --TEST-- 2: Test is_infinite() - basic function test is_infinite() 3: --FILE-- 4: <?php 5: $values = array(234, 6: -234, 7: 23.45e1, 8: -23.45e1, 9: 0xEA, 10: 0352, 11: "234", 12: "234.5", 13: "23.45e1", 14: null, 15: true, 16: false, 17: pow(0, -2), 18: acos(1.01)); 19: ; 20: for ($i = 0; $i < count($values); $i++) { 21: $res = is_infinite($values[$i]); 22: var_dump($res); 23: } 24: ?> 25: --EXPECTF-- 26: bool(false) 27: bool(false) 28: bool(false) 29: bool(false) 30: bool(false) 31: bool(false) 32: bool(false) 33: bool(false) 34: bool(false) 35: bool(false) 36: bool(false) 37: bool(false) 38: bool(true) 39: bool(false) 40: 41: 42: