title: Testing with PHP SimpleTest
body: <p>I'm running into an error while trying to run some simple tests with <a href="http://www.simpletest.org/en/start-testing.html" rel="nofollow">SimpleTest for PHP</a>.</p>
  
  <p>Currently, I'm extending the class UnitTestCase as per the documentation. I'm trying to test different aspects of my class within a method. Here is my class:</p>
  
  <pre><code>&lt;?php
  class SimpleClass extends UnitTestCase {
  
      public function __construct() {
          $this-&gt;test();
      }
  
      private function test() {
          $x = true;
          $this-&gt;assertTrue($x, 'x is true');
      }
  }
  </code></pre>
  
  <p>I've tried extending the TestSuite class and using the syntax in the documentation but I got the same error:</p>
  
  <pre><code>Fatal error: Call to a member function getDumper() on a non-object in /simpletest/test_case.php on line 316
  </code></pre>
  
  <p>Any ideas on how I could do this or am I approaching class testing wrong?</p>