title: How to create a phpUnit test for images?
body: <p>I have a simple fileupload (image upload) which resizes this image to a smaller one. To create a phpUnit test for this resize function I need a mock object which represents an image.  </p>
  
  <p>Is the best practice to use a 'testimage' or is there a better way??</p>