public function testParseToString()
 {
     $collection = new UseCollection();
     $this->assertEmpty($collection->toString());
     $collection->add(new UseClass(array('className' => 'ClassGenerator\\Code')));
     $expected = 'use ClassGenerator\\Code;' . PHP_EOL;
     $this->assertEquals($expected, $collection->toString());
 }
 /**
  * @inheritdoc
  */
 public function addUse(UseInterface $use)
 {
     $this->useCollection->add($use);
     return $this;
 }