public function testRgbColor() { $regexp = '([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])'; $this->assertRegExp('/^' . $regexp . ',' . $regexp . ',' . $regexp . '$/i', Color::rgbColor()); }