/** * @expectedException ConsoleKit\ConsoleException * @expectedExceptionMessage Unknown color 'foobar' */ public function testGetUnknownColorCode() { Colors::getColorCode('foobar'); }