function ColorUnitTestCase::testColorPack

File

modules/color/color.test, line 172

Class

ColorUnitTestCase
Unit tests for the color.module

Code

public function testColorPack() {
    foreach ($this->test_values as $test) {
        $this->assertEqual(_color_pack($test[0], $test[1]), $test[2], __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.