/**
  * Tests whether setting the source succeeds.
  *
  * @covers phpDocumentor\Transformer\Transformer::getSource
  * @covers phpDocumentor\Transformer\Transformer::setSource
  *
  * @return void
  */
 public function testSource()
 {
     $this->assertEquals('', $this->fixture->getSource());
     file_put_contents(PHPUnit\TEMP_DIR . '/test_structure.xml', '<structure></structure>');
     $this->fixture->setSource(PHPUnit\TEMP_DIR . '/test_structure.xml');
     $this->assertInstanceOf('\\DOMDocument', $this->fixture->getSource());
     // directories are not allowed
     $this->setExpectedException('\\InvalidArgumentException');
     $this->fixture->setSource(PHPUnit\TEMP_DIR);
     // unknown directories are not allowed
     $this->setExpectedException('\\InvalidArgumentException');
     $this->fixture->setSource(PHPUnit\UNKNOWN_DIR);
     $this->markTestIncomplete('We still need to test the structure.xml changes that are induced ' . 'by the addMetaDataToStructure method');
 }