Ejemplo n.º 1
0
 protected function tearDown()
 {
     $purger = new ORMPurger($this->getDoctrine()->getManager());
     $purger->setPurgeMode(ORMPurger::PURGE_MODE_DELETE);
     $purger->purge();
     parent::tearDown();
 }
Ejemplo n.º 2
0
 /**
  * {@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();
     }
 }
Ejemplo n.º 4
0
 /**
  * {@inheritDoc}
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->em->close();
     //cerrar emMod
     /*$this->emMod = static::$kernel->getContainer()
           ->get('doctrine')
           ->getManager();
       $this->emMod->close();*/
 }
Ejemplo n.º 5
0
 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();
 }
Ejemplo n.º 6
0
 protected function tearDown()
 {
     `rm -rf {$this->compiled}`;
     parent::tearDown();
 }
 /**
  * {@inheritDoc}
  */
 public function teardown()
 {
     parent::tearDown();
     $this->em->close();
 }
Ejemplo n.º 8
0
 public function tearDown()
 {
     $this->container->get('doctrine')->getConnection()->rollback();
     parent::tearDown();
     $this->container->get('doctrine')->getManager()->close();
 }
 protected function tearDown()
 {
     parent::tearDown();
 }
Ejemplo n.º 10
0
 public function tearDown()
 {
     parent::tearDown();
     $this->dropAddedTables();
 }
Ejemplo n.º 11
0
 /**
  * @inheritdoc
  */
 public function tearDown()
 {
     parent::tearDown();
 }
 /**
  * {@inheritDoc}
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->em->remove($this->user);
     $this->em->close();
     //unset($this->user); //
 }
Ejemplo n.º 13
0
 protected function tearDown()
 {
     `rm -rf {$this->dir}`;
     parent::tearDown();
 }
 protected function tearDown()
 {
     parent::tearDown();
     $this->entityManager->close();
 }
Ejemplo n.º 15
0
 /**
  * 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();
 }
Ejemplo n.º 16
0
 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;
 }
Ejemplo n.º 18
0
 /**
  * {@inheritDoc}
  */
 protected function tearDown()
 {
     $this->em->rollback();
     parent::tearDown();
     $this->em->close();
 }
 /**
  * {@inheritDoc}
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->em->close();
 }
Ejemplo n.º 20
0
 public function tearDown()
 {
     $this->client->dropBucket('in.c-sandbox.test', ['force' => true]);
     parent::tearDown();
 }