/** * Tears down the fixture, for example, close a network connection. * This method is called after a test is executed. */ protected function tearDown() { parent::tearDown(); /** * @todo figure out if this works * brain/monkey also works upon mockery and therefore * calls Mockery::close() but we cannot rely on that. */ Mockery::close(); Brain\Monkey::tearDownWP(); }
/** * Tears down Brain Monkey after having tested WordPress-related code. * * @return void */ public function tearDown() { Monkey::tearDownWP(); }
public function tearDown() { Patchwork\undoAll(); Monkey::tearDownWP(); parent::tearDown(); }
/** * Cleans up the test environment after each test. * * @since 1.0.0 * * @return void */ protected function tearDown() { Monkey::tearDownWP(); Mockery::close(); parent::tearDown(); }