I want to rollback all queries made inside the symfony/panther test.
With the normal WebTestCase i can achieve that by
protected function setUp()
{
parent::setUp();
$this->client = static::createClient();
$this->client->disableReboot();
$this->connection = $this->client->getContainer()->get('doctrine')->getConnection();
$this->connection->beginTransaction();
$this->connection->setAutoCommit(false);
}
protected function tearDown()
{
parent::tearDown();
if ($this->connection->isTransactionActive()) {
$this->connection->rollback();
}
}
How to achieve the same with Panther since there is no $client->disableReboot() method?