PhpMigration\Changes\v7dot0\IntegerOperationTest::testShift PHP Method

testShift() public method

public testShift ( )
    public function testShift()
    {
        $this->assertHasSpot('1 >> -1;');
        $this->assertNotSpot('1 >> 1;');
        $this->assertHasSpot('$a >> -1;');
        $this->assertNotSpot('$a >> 1;');
        $this->assertHasSpot('1 << -1;');
        $this->assertNotSpot('1 << 1;');
        $this->assertHasSpot('1 << $a;');
        $this->assertNotSpot('1 << 0;');
    }
IntegerOperationTest