/**
  * @covers \PHP\Manipulator\TokenContainer::<protected>
  * @covers \PHP\Manipulator\TokenContainer::offsetExists
  * @covers \Exception
  */
 public function testOffsetExistsWithNonIntegerOffsetThrowsException()
 {
     $container = new TokenContainer();
     try {
         $container->offsetExists('offset');
         $this->fail('Expected exception not thrown');
     } catch (\Exception $e) {
         $this->assertEquals('TokenContainer only allows integers as offset', $e->getMessage(), 'Wrong exception message');
     }
 }