/**
  * Test flipping an image
  */
 public function test_flip()
 {
     $file = DIR_TESTDATA . '/images/gradient-square.jpg';
     $gd_image_editor = new WP_Image_Editor_GD($file);
     $gd_image_editor->load();
     $property = new ReflectionProperty($gd_image_editor, 'image');
     $property->setAccessible(true);
     $color_top_left = imagecolorat($property->getValue($gd_image_editor), 0, 0);
     $gd_image_editor->flip(true, false);
     $this->assertEquals($color_top_left, imagecolorat($property->getValue($gd_image_editor), 0, 99));
 }
 /**
  * Test WP_Image_Editor_GD handles extension-less images
  * @ticket 39195
  */
 public function test_image_non_existent_extension()
 {
     $image_editor = new WP_Image_Editor_GD(DIR_TESTDATA . '/images/test-image-no-extension');
     $result = $image_editor->load();
     $this->assertTrue($result);
 }