Exemplo n.º 1
0
 /**
  * Tests converting a binary string to a hexadecimal number.
  *
  * @dataProvider binaryToHexProvider
  * @covers empire\framework\util\Math::binaryToHex
  *
  * @param string $binary a binary string
  * @param string $res the resulting hexadecimal number as string
  */
 public function testBinaryToHex($binary, $res)
 {
     $this->assertSame($res, Math::binaryToHex($binary));
 }