Mark the test suite as skipped.
public markTestSuiteSkipped ( string $message = '' ) | ||
$message | string |
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); } }