public function testPngRed() { $original = $this->getOriginalImage(ImageType::PNG); $res = $this->applyFilter(new ImageFilterColorize(ColorFactory::red()), $original, __METHOD__); $this->assertColorQ1($res, self::RED); // unchanged $this->assertColorQ2($res, 'ffff00'); $this->assertColorQ3($res, 'ff00ff'); $this->assertColorQ4($res, self::WHITE); }
public function testRed() { $this->assertColor(ColorFactory::red(), "ff0000"); }