public function testGivenInvalidUserStyleNameShouldThrowAnException()
{
$color = new Color();
try {
$color->setUserStyles(array('foo-bar' => 'red'));
$this->fail('must throw an InvalidArgumentException');
} catch (InvalidStyleNameException $e) {
assertInstanceOf('InvalidArgumentException', $e);
assertSame('foo-bar is not a valid style name', $e->getMessage());
}
}