title: How can I write tests for file upload in PHP?
body: <p>I'm using simpleTest to write my PHP tests. I'm writing a file upload plugin and was wondering how I may be testing it.</p>
  
  <p>I would like to check that the file is correctly uploaded, in the right folder, that error are correctly returned when needed, etc.</p>
  
  <p>How do I emulate a file upload (through the $_FILES variable) ? Are there any issues I should be aware of ?</p>