/** * Tests converting a binary string to an integer. * * @dataProvider binaryToIntProvider * @covers empire\framework\util\Math::binaryToInt * * @param string $binary the binary string * @param string $res the resulting integer as BCMath number */ public function testBinaryToInt($binary, $res) { $this->assertSame($res, Math::binaryToInt($binary)); }