title: Integration test with phpunit: How to prompt for user input?
body: <p>I have written <strong>unit tests</strong> with phpunit for a RESTful API. </p>
  
  <p>Now I want to use phpunit for further <strong>integration tests</strong>. Since these are much slower I built a special testsuite "integration" which has to be called explicitly. So unit tests can run often and stay fast.</p>
  
  <p>The <code>bootstrap.php</code> of the <strong>integration</strong> testsuite performs a database dump and seeding. The integration tests are quite slow so they will not be called as often as the unit tests. They will only be run by humans. </p>
  
  <p>To prevent an unintended deletion of the local development database I want the testscript to prompt for confirmation before dumping the database. Only if confirmed the database will be deleted and re-seeded.</p>
  
  <ol>
  <li>Is it possible to prompt for input in phpunit tests?</li>
  <li>Does a prompt hurt any "<em>design principle of integration tests"</em>?</li>
  </ol>
  
  <p>Thank you. </p>