title: PHPUnit with Selenium2 - share session not working
body: <p>I'm doing some tests with PHPUnit and Selenium and i would like all of them to run in the same browser window.</p>
  
  <p>I've tried starting the Selenium Server with </p>
  
  <pre><code>java -jar c:\php\selenium-server-standalone-2.33.0.jar -browserSessionReuse
  </code></pre>
  
  <p>but with no visible change.</p>
  
  <p>I've also tried with shareSession() in the setup</p>
  
  <pre><code>public function setUp()
  {
      $this-&gt;setHost('localhost');
      $this-&gt;setPort(4444);
      $this-&gt;setBrowser('firefox');
      $this-&gt;shareSession(true);
      $this-&gt;setBrowserUrl('http://localhost/project');
  }
  </code></pre>
  
  <p>but the only change is that it opens a window for every test, and not really sharing the session. I'm out of ideas at this point.</p>
  
  <p>My tests look like this:</p>
  
  <pre><code>public function testHasLoginForm()
  {
      $this-&gt;url('');
  
      $email = $this-&gt;byName('email');
      $password = $this-&gt;byName('password');
  
      $this-&gt;assertEquals('', $email-&gt;value());
      $this-&gt;assertEquals('', $password-&gt;value());
  }
  </code></pre>