public function test_do_not_update_cache_if_its_ignored() { $this->config->isIgnored(Argument::any())->willReturn(true); $this->cache->add(Argument::any())->shouldNotBeCalled(); $this->driver->stopCodeCoverage()->willReturn(['path\\to\\Calc.php' => '']); $this->handler->endTest('CalcTest.php'); }
/** * @param PHPUnit_Framework_Test $test * @param float $time */ public function endTest(PHPUnit_Framework_Test $test, $time) { $class = new ReflectionClass($test); $this->handler->endTest($class->getFileName()); }