Pinq\Tests\Integration\Parsing\ComplexParserTest::testNestedUnaryOperators PHP Méthode

testNestedUnaryOperators() public méthode

    public function testNestedUnaryOperators()
    {
        $function = function () {
            -+-+-+$i++;
        };
        $this->assertParsedAs($function, [O\Expression::unaryOperation(O\Operators\Unary::NEGATION, O\Expression::unaryOperation(O\Operators\Unary::PLUS, O\Expression::unaryOperation(O\Operators\Unary::NEGATION, O\Expression::unaryOperation(O\Operators\Unary::PLUS, O\Expression::unaryOperation(O\Operators\Unary::NEGATION, O\Expression::unaryOperation(O\Operators\Unary::PLUS, O\Expression::unaryOperation(O\Operators\Unary::INCREMENT, self::variable('i'))))))))]);
    }