Exemplo n.º 1
0
 /**
  * @test
  *
  * @expectedException t3lib_exception
  */
 public function cleanUpForHookWithoutHookInterfaceThrowsException()
 {
     $this->fixture->purgeHooks();
     $hookClassName = uniqid('cleanUpHook');
     $cleanUpHookMock = $this->getMock($hookClassName, array('cleanUp'));
     $GLOBALS['T3_VAR']['getUserObj'][$hookClassName] = $cleanUpHookMock;
     $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['phpunit']['FrameworkCleanUp']['phpunit_tests'] = $hookClassName;
     $this->fixture->cleanUp();
 }