Pinq\Tests\Integration\Parsing\ComplexParserTest::testNestedUnaryOperators PHP Method

testNestedUnaryOperators() public method

    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'))))))))]);
    }