Skip to content

PHPC-1945: Remove class_exists checks from SKIPIF blocks in Decimal128 tests #1345

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

Merged
merged 1 commit into from
Aug 16, 2022
Merged
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
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-002.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128 NaN values
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-003.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128 Infinity values
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-004.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128 debug handler
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
1 change: 0 additions & 1 deletion tests/bson/bson-decimal128-clone-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ MongoDB\BSON\Decimal128 can be cloned (PHP < 8.2)
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_php_version('>=', '8.2'); ?>
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
1 change: 0 additions & 1 deletion tests/bson/bson-decimal128-clone-002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ MongoDB\BSON\Decimal128 can be cloned (PHP >= 8.2)
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_php_version('<', '8.2'); ?>
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-get_properties-001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128 get_properties handler (get_object_vars)
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-get_properties-002.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128 get_properties handler (foreach)
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-jsonserialize-001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128::jsonSerialize() return value
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-jsonserialize-002.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128::jsonSerialize() with json_encode()
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-set_state-001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128::__set_state()
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-set_state_error-001.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128::__set_state() requires "dec" string field
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
2 changes: 0 additions & 2 deletions tests/bson/bson-decimal128-set_state_error-002.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
--TEST--
MongoDB\BSON\Decimal128::__set_state() requires valid decimal string
--SKIPIF--
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down
1 change: 0 additions & 1 deletion tests/bson/bson-decimal128_error-001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ MongoDB\BSON\Decimal128 requires valid decimal string
--SKIPIF--
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
<?php skip_if_php_version('>=', '7.99'); ?>
<?php if (!class_exists('MongoDB\BSON\Decimal128')) { die('skip MongoDB\BSON\Decimal128 is not available'); } ?>
--FILE--
<?php

Expand Down