/**
  * @expectedException Exception
  */
 public function testEncodeSpecial()
 {
     $data = array(array('', '', '3QJmnh'));
     foreach ($data as $datum) {
         $this->assertSame($datum[1], Base58::encode($datum[0]));
     }
 }
Example #2
0
 public static function encode($num)
 {
     return Base58::encode($num, self::$alphabet);
 }