ParaTest\Runners\PHPUnit\RunnerIntegrationTest::testRunningTestsShouldLeaveNoTempFiles PHP Method

testRunningTestsShouldLeaveNoTempFiles() public method

    public function testRunningTestsShouldLeaveNoTempFiles()
    {
        $countBefore = count($this->globTempDir('PT_*'));
        $countCoverageBefore = count($this->globTempDir('CV_*'));
        ob_start();
        $this->runner->run();
        ob_end_clean();
        $countAfter = count($this->globTempDir('PT_*'));
        $countCoverageAfter = count($this->globTempDir('CV_*'));
        $this->assertEquals($countAfter, $countBefore, "Test Runner failed to clean up the 'PT_*' file in " . sys_get_temp_dir());
        $this->assertEquals($countCoverageAfter, $countCoverageBefore, "Test Runner failed to clean up the 'CV_*' file in " . sys_get_temp_dir());
    }