コード例 #1
0
ファイル: Module.php プロジェクト: chrmue01/typo3-starter-kit
 /**
  * Configures the test listener as defined in the user settings.
  *
  * @return void
  */
 protected function configureTestListener()
 {
     if ($this->userSettingsService->getAsBoolean('testdox')) {
         $this->testListener->useHumanReadableTextFormat();
     }
     if ($this->userSettingsService->getAsBoolean('showMemoryAndTime')) {
         $this->testListener->enableShowMenoryAndTime();
     }
 }
コード例 #2
0
 /**
  * @test
  */
 public function prettifyTestClassForCoreTestAndForTestSuffixAfterUseHumanReadableTextFormatConvertCamelCaseToWords()
 {
     $this->fixture->useHumanReadableTextFormat();
     $this->assertSame('t3lib formprotection InstallToolFormProtection', $this->fixture->prettifyTestClass('t3lib_formprotection_InstallToolFormProtectionTest'));
 }
コード例 #3
0
ファイル: TestListenerTest.php プロジェクト: TrueType/phpunit
 /**
  * @test
  */
 public function prettifyTestClassForExtbaseClassNameAfterUseHumanReadableTextFormatConvertCamelCaseToWordsAndDropsTestSuffix()
 {
     $this->subject->useHumanReadableTextFormat();
     self::assertSame('Phpunit BackEnd TestListener', $this->subject->prettifyTestClass('Tx_Phpunit_BackEnd_TestListenerTest'));
 }