createResult(); } if (!$result->getCollectCodeCoverageInformation()) { $result->setCodeCoverage(new \SebastianBergmann\CodeCoverage\CodeCoverage()); } parent::run($result); $result->getCodeCoverage()->clear(); return $result; } protected function getTestIdCookie() { return $this->prepareSession()->cookie()->get('PHPUNIT_SELENIUM_TEST_ID'); } public function testTestIdCookieIsSet() { $this->url('/'); $testIdCookie = $this->getTestIdCookie(); $this->assertNotEmpty($testIdCookie); return $testIdCookie; } /** * @depends testTestIdCookieIsSet */ public function testTestsHaveUniqueTestIdCookies($previousTestIdCookie) { $this->url('/'); $this->assertNotEquals($this->getTestIdCookie(), $previousTestIdCookie); } }