/**
  * Tests whether setting a target succeed.
  *
  * @covers phpDocumentor\Transformer\Transformer::getTarget
  * @covers phpDocumentor\Transformer\Transformer::setTarget
  *
  * @return void
  */
 public function testTarget()
 {
     $this->assertEquals('', $this->fixture->getTarget());
     $this->fixture->setTarget(dirname(__FILE__));
     $this->assertEquals(dirname(__FILE__), $this->fixture->getTarget());
     // only directories are accepted, not files
     $this->setExpectedException('\\InvalidArgumentException');
     $this->fixture->setTarget(__FILE__);
     // only valid directories are accepted
     $this->setExpectedException('\\InvalidArgumentException');
     $this->fixture->setTarget(dirname(__FILE__) . 'a');
 }
 /**
  * @covers phpDocumentor\Transformer\Transformer::setTarget
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage Target directory (vfs://myroot) does not exist and could not be created
  */
 public function testExceptionWhenSettingExistingDirAsTarget()
 {
     $fileSystem = \org\bovigo\vfs\vfsStream::setup('myroot');
     $this->fixture->setTarget(\org\bovigo\vfs\vfsStream::url('myroot'));
 }
 /**
  * @covers phpDocumentor\Transformer\Transformer::setTarget
  * @expectedException \InvalidArgumentException
  */
 public function testExceptionWhenSettingFileAsTarget()
 {
     $this->fixture->setTarget(__FILE__);
 }