title: How do I test exception *handling* in PHPUnit?
body: <p>I see lots of answers about how to use PHPUnit to test whether or not an exception is thrown for a method - that's great and fine.</p>
  
  <p>For this code, I understand that @expectsException will allow me to test the try{} block and thing1(). How do I test the <code>thing2()</code> and <code>thing3()</code> bits?</p>
  
  <pre><code>try {
   thing1();
  }
  catch (Exception $e) {
   thing2();
   thing3();
  }
  </code></pre>
  
  <p>Here's what I have now that fails:</p>
  
  <pre><code>function myTest() {
      $prophecy = $this-&gt;prophesize(Exception::CLASS);
      $my_exception = $prophecy-&gt;reveal();
  
      // more testing stuff
      ... 
  }
  </code></pre>
  
  <p>PHPUnit sees the <code>reveal()</code> call as an unexpected exception, and quits before "more testing stuff".</p>