1
0
mirror of https://github.com/php/php-src.git synced 2026-03-28 18:22:42 +01:00
Files
archived-php-src/ext/gmp/tests/clone.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

23 lines
324 B
PHP

--TEST--
Cloning GMP instances
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
--FILE--
<?php
$a = gmp_init(3);
$b = clone $a;
gmp_clrbit($a, 0);
var_dump($a, $b); // $b should be unaffected
?>
--EXPECT--
object(GMP)#1 (1) {
["num"]=>
string(1) "2"
}
object(GMP)#2 (1) {
["num"]=>
string(1) "3"
}