Skip to content

Commit

Permalink
Only dropping tables and the conneciton when tehre are no nested
Browse files Browse the repository at this point in the history
testsuites
  • Loading branch information
lorenzo committed Mar 28, 2014
1 parent 1159f57 commit cb6f17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestSuite/Fixture/FixtureInjector.php
Expand Up @@ -78,8 +78,8 @@ public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
*/
public function endTestSuite(PHPUnit_Framework_TestSuite $suite) {
$this->_nesting--;
$this->_fixtureManager->shutdown();
if (!$this->_nesting) {
$this->_fixtureManager->shutdown();
$config = ConnectionManager::config('test');
ConnectionManager::drop('test');
ConnectionManager::config('test', $config);
Expand Down

0 comments on commit cb6f17d

Please sign in to comment.