Programming Language PHP
Namespace Elabftw\Services
Class Check
Method/Function color
Total Examples 3
3 code examples of PHP Elabftw\Services\Check::color extracted from open source projects
public function testColor(): void
{
$this->assertEquals('AABBCC', Check::color('#AABBCC'));
$this->expectException(ImproperActionException::class);
Check::color('pwet');
}
public function getColor(): string
{
return Check::color($this->color);
}
public function getColor(): string
{
return Check::color($this->extra['color']);
}