title: if a test case throws an exception (@expectedException) how to finish that method correctly?
body: <p>I have a test case:</p>
  
  <pre><code>/**
   * @expectedException Exception
   */
  public function testDie()
  {
      saveSomething();
      doOp();
      doOp(); // here the exception triggers
      restoreSomething(); // this line wont be executed, still I need it
  }
  </code></pre>
  
  <p>something needs to be set and restore, but I cant restore because of the exception. How to dodge it?</p>