tests/IntMathTest.php
/**
     * @covers \PhpCommon\IntMath\IntMath::subtract
     *
     * @testdox The subtract() method wraps around the result on overflow
     */
@covers \PhpCommon\IntMath\IntMath::subtract
@testdox The subtract() method wraps around the result on overflow
@covers \ PhpCommon \ IntMath \ IntMath :: subtract @testdox The subtract () method wraps around the result on overflow
public function testSubtractWrapsAroundOnOverflow()
    {
        $this->assertSame(\PHP_INT_MAX, IntMath::subtract(\PHP_INT_MIN, 1));
        $this->assertSame(\PHP_INT_MIN, IntMath::subtract(\PHP_INT_MAX, -1));
        $this->assertSame(-1, IntMath::subtract(\PHP_INT_MAX, \PHP_INT_MIN));
    }
public function testSubtractWrapsAroundOnOverflow ( ) { $ this -> assertSame ( \ PHP_INT_MAX , IntMath :: subtract ( \ PHP_INT_MIN , 1 ) ) ; $ this -> assertSame ( \ PHP_INT_MIN , IntMath :: subtract ( \ PHP_INT_MAX , - 1 ) ) ; $ this -> assertSame ( - 1 , IntMath :: subtract ( \ PHP_INT_MAX , \ PHP_INT_MIN ) ) ; }
@covers \PhpCommon\IntMath\IntMath::subtract
 @testdox The subtract() method wraps around the result on overflow
@covers \ PhpCommon \ IntMath \ IntMath :: subtract @testdox The subtract () method wraps around the result on overflow