PHP Class Tests\PHPSA\Compiler\Expression\Operators\Comparison\BaseTestCase

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

Public Methods

Method Description
smallerDataProvider ( ) : array
testFirstUnexpectedTypes ( )
testSecondUnexpectedTypes ( )
testSimpleSuccessCompile ( $a, $b ) Tests {int} $operator {int} = {int}

Protected Methods

Method Description
buildExpression ( PhpParser\Node\Scalar $a, PhpParser\Node\Scalar $b ) : PhpParser\Node\Expr\BinaryOp
operator ( $a, $b ) : mixed

Method Details

buildExpression() abstract protected method

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

operator() abstract protected method

abstract protected operator ( $a, $b ) : mixed
$a
$b
return mixed

smallerDataProvider() public method

public smallerDataProvider ( ) : array
return array

testFirstUnexpectedTypes() public method

testSecondUnexpectedTypes() public method

testSimpleSuccessCompile() public method

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