PATH:
opt
/
alt
/
tests
/
alt-php56-pecl-bitset_2.0.3-1.el8
/
tests
--TEST-- BitSet BitSet::clear() - Test clearing bits individually, as sets and as a whole --SKIPIF-- <?php if (!extension_loaded('bitset')) die('skipping missing extension'); ?> --FILE-- <?php $b = new BitSet(); $b->set(50); $b->set(63); var_dump($b->get(50)); $b->clear(50); var_dump($b->get(50)); $b->clear(); var_dump($b->__toString()); $b->set(5); $b->set(10); $b->set(20); $b->clear(5, 11); var_dump($b->__toString()); $b->set(0, 1); $b->clear(0); var_dump($b->__toString()); ?> --EXPECT-- bool(true) bool(false) string(64) "0000000000000000000000000000000000000000000000000000000000000000" string(64) "0000000000000000000010000000000000000000000000000000000000000000" string(64) "0100000000000000000010000000000000000000000000000000000000000000"
[-] 009.phpt
[edit]
[-] 014.phpt
[edit]
[-] 016.phpt
[edit]
[-] 005.phpt
[edit]
[-] BitSet_getRawValue.phpt
[edit]
[-] BitSet_clear.phpt
[edit]
[-] 012.phpt
[edit]
[-] 013.phpt
[edit]
[-] 003.phpt
[edit]
[-] BitSet_orOp.phpt
[edit]
[-] 018.phpt
[edit]
[-] BitSet_fromString.phpt
[edit]
[-] BitSet_set.phpt
[edit]
[-] BitSet_construct.phpt
[edit]
[-] 007.phpt
[edit]
[-] BitSet_size.phpt
[edit]
[-] 008.phpt
[edit]
[-] BitSet_previousClearBit.phpt
[edit]
[-] 001.phpt
[edit]
[-] BitSet_cardinality.phpt
[edit]
[-] BitSet_isEmpty.phpt
[edit]
[-] 015.phpt
[edit]
[-] 002.phpt
[edit]
[-] 017.phpt
[edit]
[-] BitSet_fromRawValue.phpt
[edit]
[-] BitSet_previousSetBit.phpt
[edit]
[-] BitSet_length.phpt
[edit]
[-] 006.phpt
[edit]
[-] BitSet_toArray.phpt
[edit]
[-] BitSet_andOp.phpt
[edit]
[-] BitSet_get.phpt
[edit]
[-] 004.phpt
[edit]
[+]
..
[-] BitSet_nextSetBit.phpt
[edit]
[-] BitSet_andNotOp.phpt
[edit]
[-] BitSet_nextClearBit.phpt
[edit]
[-] BitSet_xorOp.phpt
[edit]
[-] 010.phpt
[edit]
[-] BitSet_fromArray.phpt
[edit]
[-] 011.phpt
[edit]