/** * @expectedException InvalidArgumentException * @expectedExceptionMessage Channel color must be an integer between 0 and 255 */ public function testSetWrongRedChannel() { $color = new Color(); $color->setRed(289); }