]> granicus.if.org Git - php/commitdiff
Make test more portable.
authorandy wharmby <wharmby@php.net>
Mon, 17 Aug 2009 15:54:51 +0000 (15:54 +0000)
committerandy wharmby <wharmby@php.net>
Mon, 17 Aug 2009 15:54:51 +0000 (15:54 +0000)
12 files changed:
ext/standard/tests/math/acosh_basic.phpt
ext/standard/tests/math/acosh_basiclong_64bit.phpt
ext/standard/tests/math/acosh_error.phpt
ext/standard/tests/math/acosh_variation.phpt
ext/standard/tests/math/asinh_basic.phpt
ext/standard/tests/math/asinh_basiclong_64bit.phpt
ext/standard/tests/math/asinh_error.phpt
ext/standard/tests/math/asinh_variation.phpt
ext/standard/tests/math/atanh_basic.phpt
ext/standard/tests/math/atanh_basiclong_64bit.phpt
ext/standard/tests/math/atanh_error.phpt
ext/standard/tests/math/atanh_variation.phpt

index 34839ee2fda65822e25e23b05a3441478b86bdae..1f277f938789759286fa0ef120c3096b3103f09e 100644 (file)
@@ -2,9 +2,10 @@
 Test return type and value for expected input acosh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN")
-       die ("skip - function not supported on Windows");
-?>
+if (!function_exists("acosh")) {
+       die("SKIP acosh - not supported\n");
+}
+?> 
 --INI--
 precision = 14
 --FILE--
index 80c33b224b2f8eedc19717b310a226e9340c40cd..c8e7bbe2124110c443ce0a978c4bb078c03d0845 100644 (file)
@@ -2,7 +2,8 @@
 Test acosh function : 64bit long tests
 --SKIPIF--
 <?php
-if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+if (PHP_INT_SIZE != 8) die("SKIP this test is for 64bit platform only");
+if (!function_exists("acosh")) die("SKIP acosh - not supported\n");
 ?>
 --FILE--
 <?php
index fd2f92118da342c46ac27a3dd420d1c9417f2035..d1f0bd6ec8f403ba0b66d8d1e3e4dfd31a041f7d 100644 (file)
@@ -2,9 +2,10 @@
 Test wrong number of arguments for acosh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN" )
-        die ("skip - function not supported on Windows");
-?>
+if (!function_exists("acosh")) {
+       die("SKIP acosh - not supported\n");
+}
+?> 
 --FILE--
 <?php
 /* 
index b0e9f9bd80668b459cd1f5a03155c62886f90201..e404480fffb0b780cf7f037b0bcbb525f0569c10 100644 (file)
@@ -2,9 +2,10 @@
 Test variations in usage of acosh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN" )
-        die ("skip - function not supported on Windows");
-?>
+if (!function_exists("acosh")) {
+       die("SKIP acosh - not supported\n");
+}
+?>  
 --INI--
 precision = 10
 --FILE--
index 61f17315536d6558d7070c5fef247629bfb43900..5f6503becddecd9e8e72125ce93d30397e51b5f4 100644 (file)
@@ -2,9 +2,10 @@
 Test return type and value for expected input asinh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN")
-       die ("skip - function not supported on Windows");
-?>
+if (!function_exists("asinh")) {
+       die("SKIP asinh - not supported\n");
+}
+?> 
 --INI--
 precision = 14
 --FILE--
index a501d75d3c8b89e57621f94e5e0380e141da11fd..98e1ceb5dc076fb745080b5af49bbec38fb63870 100644 (file)
@@ -3,6 +3,7 @@ Test asinh function : 64bit long tests
 --SKIPIF--
 <?php
 if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+if (!function_exists("asinh")) die("SKIP asinh - not supported\n");
 ?>
 --FILE--
 <?php
index 96f7ba061619c30a14c0a0711974a78fe2edcf78..b9e33310a95a5851eee3d077a4c1dbd10685080f 100644 (file)
@@ -2,9 +2,10 @@
 Test wrong number of arguments for asinh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN" )
-        die ("skip - function not supported on Windows");
-?>
+if (!function_exists("asinh")) {
+       die("SKIP asinh - not supported\n");
+}
+?> 
 --FILE--
 <?php
 /* 
index 00ade0b8d52a0653d001901244a9ff5ac18845fe..cfc39f5cf12d3d450d9bc2a5f97e292cd7092dbe 100644 (file)
@@ -2,9 +2,10 @@
 Test variations in usage of asinh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN" )
-        die ("skip - function not supported on Windows");
-?>
+if (!function_exists("asinh")) {
+       die("SKIP asinh - not supported\n");
+}
+?> 
 --INI--
 precision = 10
 --FILE--
index c259bdb82bd737a932804582780ae827081636d8..6f1325257634783943f84e5663f1502e87d60963 100644 (file)
@@ -2,9 +2,10 @@
 Test return type and value for expected input atanh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN" )
-       die ("skip - function not supported on Windows");
-?>
+if (!function_exists("atanh")) {
+       die("SKIP atanh - not supported\n");
+}
+?> 
 --INI--
 precision = 14
 --FILE--
index d7608cad1d884313949759f1bb56519dd8ea5dd0..cc8d858382f12c0ba8b6565c0543c2bbcf9010b6 100644 (file)
@@ -3,6 +3,7 @@ Test atanh function : 64bit long tests
 --SKIPIF--
 <?php
 if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only");
+if (!function_exists("atanh")) die("SKIP atanh - not supported\n");
 ?>
 --FILE--
 <?php
index 3201eef20bddd0cc7fee4e55012d528f367f637d..e3438393164fe1aefe2c587853c597b14e6662f1 100644 (file)
@@ -2,9 +2,10 @@
 Test wrong number of arguments for atanh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN" )
-        die ("skip - function not supported on Windows");
-?>
+if (!function_exists("atanh")) {
+       die("SKIP atanh - not supported\n");
+}
+?> 
 --FILE--
 <?php
 /* 
index 879b9a9f286bf7f6b762d27686293a426fade4db..e0d4f00ad545504e1798f12795f5f7fb2368dcd2 100644 (file)
@@ -2,9 +2,10 @@
 Test variations in usage of atanh()
 --SKIPIF--
 <?php
-if(substr(PHP_OS, 0, 3) == "WIN" )
-        die ("skip - function not supported on Windows");
-?>
+if (!function_exists("atanh")) {
+       die("SKIP atanh - not supported\n");
+}
+?> 
 --INI--
 precision = 10
 --FILE--