Пример #1
0
 protected function setUp()
 {
     parent::setUp();
     $this->client = static::createClient(array('environment' => $this->getEnvironment()));
     //reset database
     $this->loadFixtures(array());
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function setUp()
 {
     parent::setUp();
     self::bootKernel(array('environment' => $this->getEnvironment()));
     $this->entityManager = self::$kernel->getContainer()->get('doctrine')->getManager();
     $this->loadFixtures(array());
 }