title: Phpunit, how to test if method does "nothing"?
body: <pre><code>class Testme()
  {
      public function testMe ($a)
      {
          if ($a == 1)
          {
              throw new Exception ('YAY');
          }
      }
  }
  </code></pre>
  
  <p>so its easy to test if it threw exception</p>
  
  <pre><code>/**
   * @expectedException Exception
   */
  public function test()
  {
      new Testme(1);
  }
  </code></pre>
  
  <p>but what if <strong>it didn't do anything</strong>?</p>
  
  <pre><code>public function test()
  {
      new Testme(2);
   ?? ? ? ? ?
  }
  </code></pre>