protected function setUp()
 {
     parent::setUp();
     $this->client = static::createClient(array('environment' => $this->getEnvironment()));
     //reset database
     $this->loadFixtures(array());
 }
 /**
  * {@inheritDoc}
  */
 protected function tearDown()
 {
     parent::tearDown();
     $this->entityManager->close();
 }