title: phpunit database test after teardown
body: <p>I want to execute several tests in a testcase / testsuite (via selenium) and hook a database test onto the end of every tearDown (with assert which can't be called in tearDown).</p>
  
  <p>So the workflow would be:</p>
  
  <ul>
  <li>Setup the Connection to the database and the Schema in setUpBeforeClass()</li>
  <li>Setup the Database (only the contents) in setUp()</li>
  <li>Execute test01</li>
  <li>TearDown contents</li>
  <li>Assert if every Table in Database has a rowCount of Zero. </li>
  </ul>
  
  <p>So is there a way to hook a additional assert onto the end of every tearDown?</p>
  
  <p>I tried to do the Setup in assertPreConditions and the tearDown in assertPostConditions but thats kind of ugly.</p>
  
  <p>Thx in advance</p>