示例#1
0
 public function testZerofill()
 {
     $this->assertEquals('0000000001', Utils::zerofill(1, 10));
 }
示例#2
0
 /**
  * @param string
  * @param string
  * @return string Concatenated key and mac
  */
 protected function composeCode($key, $mac)
 {
     return Utils::zerofill($key, $this->getKeyLength()) . substr($mac, 0, $this->getMacLength());
 }