title: PHPUnit: Multiple assertions in a single test, only first failure seen
body: <p>The next weirdness I'm seeing with PHPUnit:</p>
  
  <pre><code>class DummyTest extends PHPUnit_Framework_TestCase {
      public function testDummy() {
          $this-&gt;assertTrue(false, 'assert1');
          $this-&gt;assertTrue(false, 'assert2');
      }
  
      public function testDummy2() {
          $this-&gt;assertTrue(false, 'assert3');
      }
  }
  </code></pre>
  
  <p>As soon as the first assertion fails in a test, the rest of the test is ignored.</p>
  
  <p>So (with a simple call of <strong>phpunit DummyTest.php</strong>):</p>
  
  <ul>
  <li><p>The above code will display 2 tests,
  <strong>2</strong> assertions, <strong>2</strong> failures. What?</p></li>
  <li><p>If I make all the tests pass, then
  I'll get OK (2 tests, 3 assertions). 
  Good.</p></li>
  <li><p>If I only make all the tests pass
  except for assert2, I get 2 tests, 3
  assertions, 1 failure. Good.</p></li>
  </ul>
  
  <p>I don't get it, but PHPUnit's been around for ages, surely it has to be me?</p>
  
  <p>Not only are the counts not what I'd expect, only the error message for the first failed assert in the code above is displayed.</p>
  
  <p>(BTW, I'm analyzing the xml format generated by PHPUnit for CI rather than testing real code, hence the practice of multiple assertions in the one test.)</p>