title: PHPUnit Selenium 2 extension setting cookies
body: <p>I'm trying to set cookies before test but for some reason they are not set. </p>
  
  <p>Here is my example code:</p>
  
  <pre><code>class WebTest extends PHPUnit_Extensions_Selenium2TestCase
  {
      protected function setUp()
      {
          $this-&gt;setBrowser('firefox');
          $this-&gt;setBrowserUrl('http://dev.local/');
      }
  
      public function testTitle()
      {
          $session = $this-&gt;prepareSession();
  
          $session-&gt;cookie()-&gt;remove('language_version');
          $session-&gt;cookie()-&gt;add('language_version', 'en')-&gt;set();
          $this-&gt;url('/');
  
          $this-&gt;assertEquals('Title in English', $this-&gt;title());
      }
  }
  </code></pre>
  
  <p>Does anyone know how to do it? Any help greatly appreciated. </p>