getColorCode() public static method

$color can be a string with the color name, or one of the color constants.
public static getColorCode ( integer | string $color, array $options = [] ) : integer
$color integer | string
$options array
return integer
コード例 #1
0
ファイル: ColorsTest.php プロジェクト: maximebf/consolekit
 /**
  * @expectedException        ConsoleKit\ConsoleException
  * @expectedExceptionMessage Unknown color 'foobar'
  */
 public function testGetUnknownColorCode()
 {
     Colors::getColorCode('foobar');
 }