Skip to content

Migrate skip checks to --EXTENSIONS--, p1 #6797

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcadd.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcadd() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcadd_error.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcadd() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcadd_variation001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcadd() with non-integers
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=5
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bccomp.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bccomp() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bccomp_error.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bccomp() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bccomp_variation001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bccomp() with non-integers
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bccomp_variation002.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bccomp() with negative value
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcdiv.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcdiv() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcdiv_error1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ bcdiv — Divide two arbitrary precision numbers
TestFest2009
Antoni Torrents
antoni@solucionsinternet.com
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcdiv_error2.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcdiv() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcmod.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcmod() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcmod_error2.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcmod() - mod by 0
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcmod_error3.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcmod() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcmul.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcmul() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcmul_error.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcmul() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcpow.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcpow() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcpow_error1.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcpow() does not support non-integral exponents
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcpow_error2.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcpow() does not support exponents >= 2**63
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension is not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcpow_error3.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcpow() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcpow_variation001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcpow() with a negative exponent
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcpowmod.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcpowmod() - Raise an arbitrary precision number to another, reduced by a specified modulus
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcpowmod_error.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcpowmod() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcpowmod_negative_exponent.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
bc_raisemod's expo can't be negative
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcpowmod_zero_modulus.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
bc_raisemod's mod can't be zero
--CREDITS--
Gabriel Caruso (carusogabriel34@gmail.com)
--SKIPIF--
<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcscale.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcscale() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcscale_variation001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcscale() fails with negative argument
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcscale_variation002.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcadd() incorrect argument count
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=-2
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcscale_variation003.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcscale() return value
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcsqrt.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcsqrt() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcsqrt_error1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ bcsqrt — Get the square root of an arbitrary precision number
--CREDITS--
Antoni Torrents
antoni@solucionsinternet.com
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcsqrt_error2.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcsqrt() requires a well-formed value
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcsqrt_variation001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcsqrt() with argument of 0
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
4 changes: 2 additions & 2 deletions ext/bcmath/tests/bcsub.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--TEST--
bcsub() function
--SKIPIF--
<?php if(!extension_loaded("bcmath")) print "skip"; ?>
--EXTENSIONS--
bcmath
--INI--
bcmath.scale=0
--FILE--
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bcsub_error.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
bcsub() requires well-formed values
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php

Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bug.66364.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Bug #66364 (BCMath bcmul ignores scale parameter)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcmul('0.3', '0.2', 4));
Expand Down
6 changes: 2 additions & 4 deletions ext/bcmath/tests/bug44995.phpt
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
--TEST--
Bug #44995 (bcpowmod() fails if scale != 0)
--SKIPIF--
<?php
if (!extension_loaded('bcmath')) die('skip bcmath extension not available');
?>
--EXTENSIONS--
bcmath
--FILE--
<?php
var_dump(bcpowmod('4', '4', '3', 1));
Expand Down
Loading