Bitpay\Math\MathTest::testIsEngineSet PHP Method

testIsEngineSet() public method

public testIsEngineSet ( )
    public function testIsEngineSet()
    {
        Math::setEngine(null);
        $this->assertNull(Math::getEngine());
        $engine = $this->getMock('Bitpay\\Math\\EngineInterface');
        Math::setEngine($engine);
        $this->assertInstanceOf('Bitpay\\Math\\EngineInterface', Math::getEngine());
    }