title: How to setup or construct a PHP Unit test
body: <pre><code>class TestClass extends PHPUnit_Framework_TestCase {
   function testSomething() {
     $class = new Class();
     $this-&gt;assertTrue($class-&gt;someFunc(1));
   }
  
   function testSomethingAgain() {
    $class = new Class();
    $this-&gt;assertFalse($class-&gt;someFunc(0));
    }
  }
  </code></pre>
  
  <p>Hi, do I really have to create $class for every test function I create? Or is there an unknown constructor like function that I have yet to discover, since constructors don't seem to work in PHPUnit.</p>
  
  <p>Thanks</p>