Tests/TestBase.php
/*
     *
     * Close doctrine connections to avoid having a 'too many connections'
     * message when running many tests
     */
Close doctrine connections to avoid having a 'too many connections'
message when running many tests
Close doctrine connections to avoid having a ' too many connections ' message when running many tests
public function tearDown(){
		if($this->container !== null){
			$this->container->get('doctrine')->getConnection()->close();
		}
		parent::tearDown();
	}
public function tearDown ( ) { if ( $ this -> container !== null ) { $ this -> container -> get ( 'doctrine' ) -> getConnection ( ) -> close ( ) ; } parent :: tearDown ( ) ; }
Close doctrine connections to avoid having a 'too many connections'
 message when running many tests
Close doctrine connections to avoid having a ' too many connections ' message when running many tests