Skip to content

Commit 56f9049

Browse files
MaxSemnikic
authored andcommitted
Migrate skip checks to --EXTENSIONS--, p1
For rationale, see #6787 Extensions migrated in this part: * bcmath * bz2 * calendar * com_dotnet * ctype Closes GH-6797.
1 parent 550a662 commit 56f9049

File tree

192 files changed

+381
-453
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+381
-453
lines changed

ext/bcmath/tests/bcadd.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcadd() function
3-
--SKIPIF--
4-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
3+
--EXTENSIONS--
4+
bcmath
55
--INI--
66
bcmath.scale=0
77
--FILE--

ext/bcmath/tests/bcadd_error.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcadd() requires well-formed values
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
6-
?>
3+
--EXTENSIONS--
4+
bcmath
75
--FILE--
86
<?php
97

ext/bcmath/tests/bcadd_variation001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcadd() with non-integers
3-
--SKIPIF--
4-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
3+
--EXTENSIONS--
4+
bcmath
55
--INI--
66
bcmath.scale=5
77
--FILE--

ext/bcmath/tests/bccomp.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bccomp() function
3-
--SKIPIF--
4-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
3+
--EXTENSIONS--
4+
bcmath
55
--INI--
66
bcmath.scale=0
77
--FILE--

ext/bcmath/tests/bccomp_error.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bccomp() requires well-formed values
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
6-
?>
3+
--EXTENSIONS--
4+
bcmath
75
--FILE--
86
<?php
97

ext/bcmath/tests/bccomp_variation001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bccomp() with non-integers
3-
--SKIPIF--
4-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
3+
--EXTENSIONS--
4+
bcmath
55
--INI--
66
bcmath.scale=0
77
--FILE--

ext/bcmath/tests/bccomp_variation002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bccomp() with negative value
3-
--SKIPIF--
4-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
3+
--EXTENSIONS--
4+
bcmath
55
--INI--
66
bcmath.scale=0
77
--FILE--

ext/bcmath/tests/bcdiv.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcdiv() function
3-
--SKIPIF--
4-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
3+
--EXTENSIONS--
4+
bcmath
55
--INI--
66
bcmath.scale=0
77
--FILE--

ext/bcmath/tests/bcdiv_error1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ bcdiv — Divide two arbitrary precision numbers
44
TestFest2009
55
Antoni Torrents
66
7-
--SKIPIF--
8-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
7+
--EXTENSIONS--
8+
bcmath
99
--FILE--
1010
<?php
1111
try {

ext/bcmath/tests/bcdiv_error2.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcdiv() requires well-formed values
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
6-
?>
3+
--EXTENSIONS--
4+
bcmath
75
--FILE--
86
<?php
97

0 commit comments

Comments
 (0)