Extension\BuiltIn\IntMethodTest::testMath PHP Method

testMath() public method

public testMath ( )
    public function testMath()
    {
        $t = new IntMethods();
        $this->assertSame(abs(10), $t->getAbs(10));
        $this->assertSame(abs(-5), $t->getAbs1());
        $this->assertSame(pow(2, 4), $t->getPow(2, 4));
        $this->assertSame(sqrt(4), $t->getSqrt(4));
        $this->assertSame(exp(2), $t->getExp(2));
        $this->assertSame(log(10), $t->getLog(10));
        $this->assertSame(log(10, 10), $t->getLog(10, 10));
    }