protected function disableMocks() { Mock::disableAll(); }
public function setUp() { \phpmock\Mock::disableAll(); $this->alwaysParticipateFilter = new Percentage(100); $this->chooser = new StaticChooser(0); $this->variant = $this->getMockBuilder(VariantInterface::class)->setMethods(['getIdentifier', 'run'])->getMock(); $this->manager = $manager = $this->getMockBuilder(ManagerInterface::class)->getMock(); }
public function tearDown() { // disable all mocked functions Mock::disableAll(); }
/** * Checks all predictions defined by prophecies of this Prophet. * * It will also disable all previously revealed function prophecies. * * @throws AggregateException If any prediction fails. * @SuppressWarnings(PHPMD) */ public function checkPredictions() { Mock::disableAll(); $this->prophet->checkPredictions(); }
/** * Reset global cookies array and disable * global function mocks */ protected function tearDown() { parent::tearDown(); Mock::disableAll(); }