public static function setUpBeforeClass() { self::$staticClient = new Client(['base_url' => 'http://localhost:8000', 'defaults' => ['exceptions' => false]]); self::$history = new History(); self::$staticClient->getEmitter()->attach(self::$history); self::bootKernel(); }
protected function setUp() { $this->client = self::$staticClient; // reset the history self::$history = array(); $this->purgeDatabase(); }