title: Close a test using Selenium Webdriver PHP
body: <p>Here's how I write my tests: </p>
  
  <p>A class with private methods and a single public method which runs all my others private methods. </p>
  
  <pre><code>class MyTest extends PHPUnit_Framework_TestCase
  {
      private function firstScenario() {
          $this-&gt;navigation = new Navigation($this-&gt;webDriver);
          $this-&gt;navigation-&gt;goToPointA();
          //...
      }
  
      private function secondScenario() {
          $this-&gt;navigation = new Navigation($this-&gt;webDriver);
          $this-&gt;navigation-&gt;goToPointA();
          //...
      }
  
      public function testRun() {
          //...
          $this-&gt;firstScenario();
          $this-&gt;secondScenario();
          //...
      }
  </code></pre>
  
  <p>I have in other classes some generic methods, whose one named Navigation.php. In this class, I have all my methods which enable me to go to a specific point of my application.</p>
  
  <p>All I want to do is, according to a condition, to close (or quit, or dispose, or whatever you want) my test, properly, without returning an error. I tried quit(), close() and dispose() but maybe I use its wrong. </p>