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

Inheritance: extends Tests\PHPSA\TestCase
Afficher le fichier Open project: ovr/phpsa

Méthodes publiques

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

Méthodes protégées

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

Method Details

buildExpression() abstract protected méthode

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

operator() abstract protected méthode

abstract protected operator ( $a, $b ) : mixed
$a
$b
Résultat mixed

smallerDataProvider() public méthode

public smallerDataProvider ( ) : array
Résultat array

testFirstUnexpectedTypes() public méthode

testSecondUnexpectedTypes() public méthode

testSimpleSuccessCompile() public méthode

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