PHP Class Tests\PHPSA\Compiler\Expression\Operators\Arithmetical\DivTest

Inheritance: extends AbstractDivMod
Show file Open project: ovr/phpsa

Public Methods

Method Description
divDoubleToDoubleResultDataProvider ( ) : array Data provider for Div {double} / {double} = {double}
divFloatResultDataProvider ( ) : array Data provider for Div {int} / {double} = {double}
divIntResultDataProvider ( ) : array Data provider for Div {int} / {int} = {int}
testDivDoubleToDoubleWithDoubleResult ( $a, $b, $c ) Tests {double} $operator {double} = {double}
testDivDoubleToIntWithDoubleResult ( $a, $b, $c ) Tests {double} $operator {int} = {double}
testDivIntToDoubleWithDoubleResult ( $a, $b, $c ) Tests {int} $operator {double} = {double}
testDivIntToIntWithIntResult ( $a, $b ) Tests {int} $operator {int} = {int}

Protected Methods

Method Description
buildExpression ( PhpParser\Node\Scalar $a, PhpParser\Node\Scalar $b ) : PhpParser\Node\Expr\BinaryOp\Div
getAssertType ( )
process ( $a, $b ) : float

Method Details

buildExpression() protected method

protected buildExpression ( PhpParser\Node\Scalar $a, PhpParser\Node\Scalar $b ) : PhpParser\Node\Expr\BinaryOp\Div
$a PhpParser\Node\Scalar
$b PhpParser\Node\Scalar
return PhpParser\Node\Expr\BinaryOp\Div

divDoubleToDoubleResultDataProvider() public method

Data provider for Div {double} / {double} = {double}

divFloatResultDataProvider() public method

Data provider for Div {int} / {double} = {double}
public divFloatResultDataProvider ( ) : array
return array

divIntResultDataProvider() public method

Data provider for Div {int} / {int} = {int}
public divIntResultDataProvider ( ) : array
return array

getAssertType() protected method

protected getAssertType ( )

process() protected method

protected process ( $a, $b ) : float
$a
$b
return float

testDivDoubleToDoubleWithDoubleResult() public method

Tests {double} $operator {double} = {double}

testDivDoubleToIntWithDoubleResult() public method

Tests {double} $operator {int} = {double}
public testDivDoubleToIntWithDoubleResult ( $a, $b, $c )

testDivIntToDoubleWithDoubleResult() public method

Tests {int} $operator {double} = {double}
public testDivIntToDoubleWithDoubleResult ( $a, $b, $c )

testDivIntToIntWithIntResult() public method

Tests {int} $operator {int} = {int}
public testDivIntToIntWithIntResult ( $a, $b )