/** * Every testcase should run *twice*. First, it is run in *uncached* way, second, * it is run *cached*. To make sure that the first run is always uncached, the * $standaloneViewNonce is initialized to some random value which is used inside * an overridden version of StandaloneView::createIdentifierForFile. */ public function runBare() { $this->standaloneViewNonce = uniqid(); parent::runBare(); $numberOfAssertions = $this->getNumAssertions(); parent::runBare(); $this->addToAssertionCount($numberOfAssertions); }