SilverStripe\Assets\Tests\ImageTest::testQualityAdjustsImageFilesize
Tests that calls to ->Quality() affect the resulting image's file size.
These tests are a little crude (simple "less/greater than"), but it's not possible to accurately predict file sizes
Signature
public function testQualityAdjustsImageFilesize()