disableAll() 공개 정적인 메소드

Disable all mocks.
또한 보기: Mock::enable()
또한 보기: Mock::disable()
public static disableAll ( )
예제 #1
1
 protected function disableMocks()
 {
     Mock::disableAll();
 }
예제 #2
0
파일: EngineTest.php 프로젝트: phpab/phpab
 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();
 }
예제 #3
0
 public function tearDown()
 {
     // disable all mocked functions
     Mock::disableAll();
 }
예제 #4
0
 /**
  * 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();
 }
예제 #5
0
파일: CookieTest.php 프로젝트: phpab/phpab
 /**
  * Reset global cookies array and disable
  * global function mocks
  */
 protected function tearDown()
 {
     parent::tearDown();
     Mock::disableAll();
 }