/** * @expectedException InvalidArgumentException * @expectedExceptionMessage Alpha parameter value must be an integer between 0 and 127 */ public function testSetWrongAlphaChannel() { $color = new Color(); $color->setAlpha(222); }