added kernel shutdown before create client, fixed and stashed

This commit is contained in:
Giulio De Donato 2012-03-29 11:34:12 +02:00
parent 1bb6e0de4d
commit 3303155023

View File

@ -35,6 +35,10 @@ abstract class WebTestCase extends \PHPUnit_Framework_TestCase
*/
static protected function createClient(array $options = array(), array $server = array())
{
if (null !== static::$kernel) {
static::$kernel->shutdown();
}
static::$kernel = static::createKernel($options);
static::$kernel->boot();