tests/IntMathTest.php
/**
     * @covers \PhpCommon\IntMath\IntMath::multiply
     *
     * @testdox The multiply() method returns the product of the arguments
     */
@covers \PhpCommon\IntMath\IntMath::multiply
@testdox The multiply() method returns the product of the arguments
@covers \ PhpCommon \ IntMath \ IntMath :: multiply @testdox The multiply () method returns the product of the arguments
public function testMultiplyReturnsTheProductOfTheArguments()
    {
        $this->assertSame(0, IntMath::multiply(1, 0));
        $this->assertSame(0, IntMath::multiply(0, 1));
        $this->assertSame(-1, IntMath::multiply(1, -1));
        $this->assertSame(-1, IntMath::multiply(-1, 1));
        $this->assertSame(1, IntMath::multiply(1, 1));
        $this->assertSame(-150, IntMath::multiply(-10, 15));
        $this->assertSame(-150, IntMath::multiply(10, -15));
        $this->assertSame(\PHP_INT_MAX, IntMath::multiply(1, \PHP_INT_MAX));
        $this->assertSame(-\PHP_INT_MAX, IntMath::multiply(-1, \PHP_INT_MAX));
        $this->assertSame(-\PHP_INT_MAX, IntMath::multiply(1, -\PHP_INT_MAX));
        $this->assertSame(0, IntMath::multiply(0, \PHP_INT_MAX));
        $this->assertSame(0, IntMath::multiply(0, -\PHP_INT_MAX));
        $this->assertSame(\PHP_INT_MIN, IntMath::multiply(1, \PHP_INT_MIN));
        $this->assertSame(0, IntMath::multiply(0, \PHP_INT_MIN));
    }
public function testMultiplyReturnsTheProductOfTheArguments ( ) { $ this -> assertSame ( 0 , IntMath :: multiply ( 1 , 0 ) ) ; $ this -> assertSame ( 0 , IntMath :: multiply ( 0 , 1 ) ) ; $ this -> assertSame ( - 1 , IntMath :: multiply ( 1 , - 1 ) ) ; $ this -> assertSame ( - 1 , IntMath :: multiply ( - 1 , 1 ) ) ; $ this -> assertSame ( 1 , IntMath :: multiply ( 1 , 1 ) ) ; $ this -> assertSame ( - 150 , IntMath :: multiply ( - 10 , 15 ) ) ; $ this -> assertSame ( - 150 , IntMath :: multiply ( 10 , - 15 ) ) ; $ this -> assertSame ( \ PHP_INT_MAX , IntMath :: multiply ( 1 , \ PHP_INT_MAX ) ) ; $ this -> assertSame ( - \ PHP_INT_MAX , IntMath :: multiply ( - 1 , \ PHP_INT_MAX ) ) ; $ this -> assertSame ( - \ PHP_INT_MAX , IntMath :: multiply ( 1 , - \ PHP_INT_MAX ) ) ; $ this -> assertSame ( 0 , IntMath :: multiply ( 0 , \ PHP_INT_MAX ) ) ; $ this -> assertSame ( 0 , IntMath :: multiply ( 0 , - \ PHP_INT_MAX ) ) ; $ this -> assertSame ( \ PHP_INT_MIN , IntMath :: multiply ( 1 , \ PHP_INT_MIN ) ) ; $ this -> assertSame ( 0 , IntMath :: multiply ( 0 , \ PHP_INT_MIN ) ) ; }
@covers \PhpCommon\IntMath\IntMath::multiply
 @testdox The multiply() method returns the product of the arguments
@covers \ PhpCommon \ IntMath \ IntMath :: multiply @testdox The multiply () method returns the product of the arguments