public function endTestSuite(\PHPUnit_Framework_TestSuite $suite)
{
if (!in_array($suite->getName(), array('phpcr', 'orm'))) {
return;
}
$process = $this->processBuilder->setArguments(array_merge($this->prefix, array('doctrine:database:drop', '--force')))->getProcess();
$process->run();
if (!$process->isSuccessful()) {
$output = null !== $process->getErrorOutput() ? $process->getErrorOutput() : $process->getOutput();
$suite->markTestSuiteSkipped('Error when dropping database: ' . $output);
}
}