<?php

namespace Pinq\Tests\Integration\Parsing;

use Pinq\Expressions as O;

class PowerOperatorsTest extends ParserTest
{
    protected function setUp()
    {
        if (!version_compare(PHP_VERSION, '5.6.0-alpha3', '>=')) {
            $this->markTestSkipped('Requires >=PHP 5.6');
        }
    }

    /**
     * @dataProvider parsers
     */
    public function testBinaryOperator()
    {
        $this->assertParsedAs(
                [PowerOperators::TYPE, 'binaryOperator'],
                [
                        O\Expression::binaryOperation(
                                O\Expression::value(4),
                                O\Operators\Binary::POWER,
                                O\Expression::value(5)
                        )
                ]
        );
    }
}

<?php

namespace Pinq\Tests\Integration\Parsing;

use Pinq\Expressions as O;

class PowerOperatorsTest extends ParserTest
{
    protected function setUp()
    {
        if (!version_compare(PHP_VERSION, '5.6.0-alpha3', '>=')) {
            $this->markTestSkipped('Requires >=PHP 5.6');
        }
    }

    /**
     * @dataProvider parsers
     */
    public function testBinaryOperator()
    {
        $this->assertParsedAs(
                [PowerOperators::TYPE, 'binaryOperator'],
                [
                        O\Expression::binaryOperation(
                                O\Expression::value(4),
                                O\Operators\Binary::POWER,
                                O\Expression::value(5)
                        )
                ]
        );
    }

    /**
     * @dataProvider parsers
     */
    public function testAssignmentOperator()
    {
        $this->assertParsedAs(
                [PowerOperators::TYPE, 'assignmentOperator'],
                [
                        O\Expression::assign(
                                O\Expression::variable(O\Expression::value('i')),
                                O\Operators\Assignment::POWER,
                                O\Expression::value(5)
                        )
                ]
        );
    }
}

Add missing ** assignment operator parsing test
Add missing ** assignment operator parsing test
