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

ext/bcmath/tests/bcmod.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcmod() 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/bcmod_error2.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcmod() - mod by 0
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/bcmod_error3.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcmod() 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/bcmul.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcmul() 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/bcmul_error.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcmul() 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/bcpow.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcpow() 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/bcpow_error1.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcpow() does not support non-integral exponents
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
6-
?>
3+
--EXTENSIONS--
4+
bcmath
75
--FILE--
86
<?php
97
try {

ext/bcmath/tests/bcpow_error2.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcpow() does not support exponents >= 2**63
3-
--SKIPIF--
4-
<?php
5-
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
6-
?>
3+
--EXTENSIONS--
4+
bcmath
75
--FILE--
86
<?php
97
try {

ext/bcmath/tests/bcpow_error3.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcpow() 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/bcpow_variation001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcpow() with a negative exponent
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/bcpowmod.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcpowmod() - Raise an arbitrary precision number to another, reduced by a specified modulus
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/bcpowmod_error.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcpowmod() 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/bcpowmod_negative_exponent.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
bc_raisemod's expo can't be negative
33
--CREDITS--
44
Gabriel Caruso ([email protected])
5-
--SKIPIF--
6-
<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?>
5+
--EXTENSIONS--
6+
bcmath
77
--FILE--
88
<?php
99
try {

ext/bcmath/tests/bcpowmod_zero_modulus.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
bc_raisemod's mod can't be zero
33
--CREDITS--
44
Gabriel Caruso ([email protected])
5-
--SKIPIF--
6-
<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?>
5+
--EXTENSIONS--
6+
bcmath
77
--FILE--
88
<?php
99
try {

ext/bcmath/tests/bcscale.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcscale() 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/bcscale_variation001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcscale() fails with negative argument
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/bcscale_variation002.phpt

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

ext/bcmath/tests/bcscale_variation003.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcscale() return 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/bcsqrt.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcsqrt() 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/bcsqrt_error1.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ bcsqrt — Get the square root of an arbitrary precision number
33
--CREDITS--
44
Antoni Torrents
55
6-
--SKIPIF--
7-
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
6+
--EXTENSIONS--
7+
bcmath
88
--FILE--
99
<?php
1010
try {

ext/bcmath/tests/bcsqrt_error2.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcsqrt() requires a well-formed value
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/bcsqrt_variation001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcsqrt() with argument of 0
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/bcsub.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
--TEST--
22
bcsub() 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/bcsub_error.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
bcsub() 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/bug.66364.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #66364 (BCMath bcmul ignores scale parameter)
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
var_dump(bcmul('0.3', '0.2', 4));

ext/bcmath/tests/bug44995.phpt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
--TEST--
22
Bug #44995 (bcpowmod() fails if scale != 0)
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
var_dump(bcpowmod('4', '4', '3', 1));

0 commit comments

Comments
 (0)