PHP Class Tests\PHPSA\Compiler\Expression\BinaryOp\NotIndenticalTest

Inheritance: extends Tests\PHPSA\TestCase
Show file Open project: ovr/phpsa

Public Methods

Method Description
providerForStaticIntToFloatCases ( )
providerForStaticIntToIntCases ( ) : array
testFirstUnexpectedTypes ( ) Tests {left-expr::UNKNOWN} !== {right-expr}
testSecondUnexpectedTypes ( ) Tests {left-expr} !== {right-expr::UNKNOWN}
testStaticFailIntToFloat ( integer $a, integer $b ) Tests (int) {left-expr} !== (float) {right-expr}
testStaticFloatToFloat ( integer $a, integer $b ) Tests (float) {left-expr} !== (float) {right-expr}
testStaticIntToInt ( integer $a, integer $b ) Tests (int) {left-expr} !=== (int) {right-expr}

Method Details

providerForStaticIntToFloatCases() public method

providerForStaticIntToIntCases() public method

testFirstUnexpectedTypes() public method

Tests {left-expr::UNKNOWN} !== {right-expr}

testSecondUnexpectedTypes() public method

Tests {left-expr} !== {right-expr::UNKNOWN}

testStaticFailIntToFloat() public method

Tests (int) {left-expr} !== (float) {right-expr}

testStaticFloatToFloat() public method

Tests (float) {left-expr} !== (float) {right-expr}

testStaticIntToInt() public method

Tests (int) {left-expr} !=== (int) {right-expr}