PATH:
opt
/
alt
/
tests
/
alt-php80-pecl-bitset_3.2.0-1.el8
/
tests
--TEST-- BitSet BitSet::set() - Tests for setting bits or a range of bits on --SKIPIF-- <?php if (!extension_loaded('bitset')) die('skipping missing extension'); ?> --FILE-- <?php $b = new BitSet(8); var_dump($b->__toString()); $b->set(2); var_dump($b->__toString()); $b->set(2, 4); var_dump($b->__toString()); $b->set(0); var_dump($b->__toString()); $b->set(7); var_dump($b->__toString()); $b->set(); // Set all bits on var_dump($b->__toString()); try { var_dump($b->set(8)); } catch (Exception $e) { var_dump(get_class($e).': '.$e->getMessage()); } ?> --EXPECT-- string(8) "00000000" string(8) "00100000" string(8) "00111000" string(8) "10111000" string(8) "10111001" string(8) "11111111" string(87) "OutOfRangeException: The requested start index is greater than the total number of bits"
[-] BitSet_fromInteger.phpt
[edit]
[-] BitSet_andOp.phpt
[edit]
[-] BitSet_intersects.phpt
[edit]
[-] BitSet_set.phpt
[edit]
[-] BitSet_length.phpt
[edit]
[-] BitSet_previousSetBit.phpt
[edit]
[-] BitSet_xorOp.phpt
[edit]
[-] BitSet_orOp.phpt
[edit]
[-] bug63315.phpt
[edit]
[-] BitSet_size.phpt
[edit]
[-] BitSet_nextSetBit.phpt
[edit]
[-] BitSet_get.phpt
[edit]
[-] BitSet_construct.phpt
[edit]
[-] BitSet_fromString.phpt
[edit]
[-] BitSet_toArray.phpt
[edit]
[-] BitSet_nextClearBit.phpt
[edit]
[+]
..
[-] BitSet_previousClearBit.phpt
[edit]
[-] BitSet_getRawValue.phpt
[edit]
[-] BitSet_andNotOp.phpt
[edit]
[-] BitSet_clear.phpt
[edit]
[-] BitSet_fromRawValue.phpt
[edit]
[-] BitSet_isEmpty.phpt
[edit]
[-] BitSet_fromArray.phpt
[edit]
[-] BitSet_cardinality.phpt
[edit]