/**
  * @test
  */
 public function renderCreatesIconPathWithHtmlSpecialChars()
 {
     $extensionKey = 'phpunit';
     $testable = new Tx_Phpunit_Testable();
     $testable->setKey($extensionKey);
     $testable->setIconPath(ExtensionManagementUtility::extPath('phpunit') . 'ext_&_icon.gif');
     $subject = new Tx_Phpunit_ViewHelpers_ExtensionSelectorViewHelper();
     $subject->injectOutputService($this->outputService);
     $subject->injectUserSettingService($this->userSettingsService);
     /** @var $testFinder Tx_Phpunit_Service_TestFinder|PHPUnit_Framework_MockObject_MockObject */
     $testFinder = $this->getMock('Tx_Phpunit_Service_TestFinder', array('getTestablesForEverything'));
     $testFinder->expects(self::any())->method('getTestablesForEverything')->will(self::returnValue(array($extensionKey => $testable)));
     $subject->injectTestFinder($testFinder);
     $subject->render();
     self::assertContains(htmlspecialchars($testable->getIconPath()), $this->outputService->getCollectedOutput());
 }
 /**
  * @test
  *
  * @expectedException InvalidArgumentException
  */
 public function setIconPathWithEmptyStringThrowsException()
 {
     $this->fixture->setIconPath('');
 }