Exemple #1
0
 public function testToArray()
 {
     $arr = $this->_List->toArray();
     $this->assertTrue(\is_array($arr));
     $this->assertCount(5, $arr);
     $this->assertEquals('hello', $arr[0]);
 }
Exemple #2
0
 /**
  * Returns this set as a binary string in big-endian format
  * @return string
  */
 public function __toString()
 {
     return $this->_List->map(function ($v) {
         return (int) $v;
     })->reverse()->join('');
 }