示例#1
0
 public function testColorName()
 {
     $this->assertRegExp('/^[\\w]+$/', Color::colorName());
 }
示例#2
0
 public function testRgbCssColor()
 {
     $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])';
     $this->assertRegExp('/^rgb\\(' . $regexp . ',' . $regexp . ',' . $regexp . '\\)$/i', Color::rgbCssColor());
 }