protected function tearDown() { $purger = new ORMPurger($this->getDoctrine()->getManager()); $purger->setPurgeMode(ORMPurger::PURGE_MODE_DELETE); $purger->purge(); parent::tearDown(); }
/** * {@inheritDoc} */ protected function tearDown() { parent::tearDown(); $this->em->close(); $this->em = null; // avoid memory leaks }
/** * {@inheritDoc} */ protected function tearDown() { parent::tearDown(); if (!is_null($this->em)) { $this->em->close(); } }
/** * {@inheritDoc} */ protected function tearDown() { parent::tearDown(); $this->em->close(); //cerrar emMod /*$this->emMod = static::$kernel->getContainer() ->get('doctrine') ->getManager(); $this->emMod->close();*/ }
protected function tearDown() { unset($this->dm); $refl = new \ReflectionObject($this); foreach ($refl->getProperties() as $prop) { if (!$prop->isStatic() and 0 !== strpos($prop->getDeclaringClass()->getName(), 'PHPUnit_')) { $prop->setAccessible(true); $prop->setValue($this, null); } } parent::tearDown(); }
protected function tearDown() { `rm -rf {$this->compiled}`; parent::tearDown(); }
/** * {@inheritDoc} */ public function teardown() { parent::tearDown(); $this->em->close(); }
public function tearDown() { $this->container->get('doctrine')->getConnection()->rollback(); parent::tearDown(); $this->container->get('doctrine')->getManager()->close(); }
protected function tearDown() { parent::tearDown(); }
public function tearDown() { parent::tearDown(); $this->dropAddedTables(); }
/** * @inheritdoc */ public function tearDown() { parent::tearDown(); }
/** * {@inheritDoc} */ protected function tearDown() { parent::tearDown(); $this->em->remove($this->user); $this->em->close(); //unset($this->user); // }
protected function tearDown() { `rm -rf {$this->dir}`; parent::tearDown(); }
protected function tearDown() { parent::tearDown(); $this->entityManager->close(); }
/** * Clean up Kernel usage in this test. */ protected function tearDown() { $manager = self::getDoctrine()->getManager(); foreach ($this->dayInDBToDelete as $Entity) { $manager->remove($Entity); } $manager->flush(); parent::tearDown(); }
public function tearDown() { // Shutdown the kernel. $this->myKernel->shutdown(); parent::tearDown(); }
/** * Cleans up the environment after running a test. */ protected function tearDown() { parent::tearDown(); $this->em->close(); $this->registryRepository = null; }
/** * {@inheritDoc} */ protected function tearDown() { $this->em->rollback(); parent::tearDown(); $this->em->close(); }
/** * {@inheritDoc} */ protected function tearDown() { parent::tearDown(); $this->em->close(); }
public function tearDown() { $this->client->dropBucket('in.c-sandbox.test', ['force' => true]); parent::tearDown(); }