/**
* Must test that the outputted PNG is the same because you can not compare resources.
*/
public function test_it_loads_an_image_string_into_a_resource()
{
imagepng(imagecreatefromstring($this->imagePath), $this->compareTestSaveLocation);
imagepng($this->image->getImageResource(), $this->testImageSaveLocation);
$correctImage = file_get_contents($this->compareTestSaveLocation);
$testImage = file_get_contents($this->testImageSaveLocation);
$this->assertEquals($correctImage, $testImage);
}