/**
  * @covers \PHP\Manipulator\TokenContainer::setArray
  */
 public function testGetContainersetArray()
 {
     $token1 = Token::factory('Token1');
     $token2 = Token::factory('Token2');
     $token3 = Token::factory('Token3');
     $container = new TokenContainer();
     $container[] = $token1;
     $container[] = $token2;
     $container[] = $token3;
     $array = $container->toArray();
     $this->assertInternalType('array', $array);
     $this->assertCount(3, $array);
     $this->assertContains($token1, $array);
     $this->assertContains($token2, $array);
     $this->assertContains($token3, $array);
     $container->setArray(array());
     $array = $container->toArray();
     $this->assertInternalType('array', $array);
     $this->assertCount(0, $array);
 }