/** * Loads all files containing test cases for the given testable. * * @param Tx_Phpunit_Testable $testable the testable for which to load all test case files * * @return void */ protected function loadAllFilesContainingTestCasesForSingleTestable(Tx_Phpunit_Testable $testable) { $testsPath = $testable->getTestsPath(); $testCaseFileNames = $this->testCaseService->findTestCaseFilesInDirectory($testsPath); foreach ($testCaseFileNames as $testCaseFileName) { require_once realpath($testsPath . $testCaseFileName); } }
/** * @test */ public function setTestsPathSetsTestsPath() { $path = t3lib_extMgm::extPath('phpunit') . 'Tests/'; $this->fixture->setTestsPath($path); $this->assertSame($path, $this->fixture->getTestsPath()); }
/** * @test */ public function setTestsPathSetsTestsPath() { $path = ExtensionManagementUtility::extPath('phpunit') . 'Tests/'; $this->subject->setTestsPath($path); self::assertSame($path, $this->subject->getTestsPath()); }