Bitpay\Math\MathTest::testBcMath PHP Method

testBcMath() public method

public testBcMath ( )
    public function testBcMath()
    {
        if (!extension_loaded('bcmath')) {
            $this->markTestSkipped('The Bcmath extension is NOT loaded! You must enable it to run this test');
        } elseif (extension_loaded('gmp')) {
            $this->markTestSkipped('The GMP extension is loaded! You must remove it to run this test');
        }
        Math::add("3324234234234234234", "3324234234234234234");
        $this->assertEquals(new BcEngine(), Math::getEngine());
    }