protected function assertColorQ4(ImageImageResource $aRes, $aColor) { $coord = Coordinate::create($aRes->getWidth() - self::OFFSET, $aRes->getHeight() - self::OFFSET); $testColor = $aRes->getColorAt($coord)->getHexColor(); $this->assertEquals($aColor, $testColor, "Checking color in quadrant 4 {$coord} {$aColor} vs {$testColor}"); }
protected function assertColorQ4(ImageImageResource $aRes, $aColor) { $testColor = $aRes->getColorAt(new Coordinate($aRes->getX() - 2, $aRes->getY() - 2))->getHexColor(); $this->assertEquals($aColor, $testColor, "Checking color in quadrant 4 " . $aColor . ' vs ' . $testColor); }