/**
  * Reset the container and with it any state
  */
 protected function tearDown()
 {
     parent::tearDown();
     foreach ($this->revisions as $revision) {
         try {
             $this->getStorage()->multiRemove(array($revision));
         } catch (\MWException $e) {
             // ignore - lifecyclehandlers may cause issues with tests, where
             // not all related stuff is loaded
         }
     }
     foreach ($this->workflows as $workflow) {
         try {
             $this->getStorage()->multiRemove(array($workflow));
             $found = $this->getStorage()->find('TopicListEntry', array('topic_id' => $workflow->getId()));
             if ($found) {
                 $this->getStorage()->multiRemove($found);
             }
         } catch (FlowException $e) {
             // nothing, was probably never stored...
         }
     }
     // Needed because not all cases do the reset in setUp yet
     Container::reset();
 }
 public function setUp()
 {
     parent::setUp();
     // Check for Parsoid
     try {
         Utils::convert('html', 'wikitext', 'Foo', Title::newFromText('UTPage'));
     } catch (WikitextException $excep) {
         $this->markTestSkipped('Parsoid not enabled');
     }
 }
 protected function dataToString($data)
 {
     foreach ($data as $key => $value) {
         if ($value instanceof UUID) {
             $data[$key] = "UUID: " . $value->getAlphadecimal();
         }
     }
     return parent::dataToString($data);
 }
 public function setUp()
 {
     parent::setUp();
     $this->ancestor = UUID::create(false);
     $this->descendant = UUID::create(false);
 }
 protected function setUp()
 {
     parent::setUp();
     $this->urlGenerator = Container::get('url_generator');
 }
 public function setup()
 {
     $this->setMwGlobals(array('wgExternalStores' => array('FlowMock')));
     \ExternalStoreFlowMock::$isUsed = false;
     parent::setUp();
 }