/** * {@inheritdoc} */ public function setCookie($name, $value = null) { if (null === $value) { $this->browser->deleteCookie($name, 'recurse=true'); } else { $this->browser->createCookie($name . '=' . $value, ''); } }