function ColorUnitTestCase::testColorUnpack
File
-
modules/
color/ color.test, line 178
Class
- ColorUnitTestCase
- Unit tests for the color.module
Code
public function testColorUnpack() {
foreach ($this->test_values as $test) {
$this->assertEqual(_color_unpack($test[2], $test[1]), $test[0], __FUNCTION__ . ' hex: ' . $test[2] . ' normalize: ' . ($test[1] ? 'TRUE' : 'FALSE'));
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.