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

Was this example useful?
0
                                                    public function testColor(): void
    {
        $this->assertEquals('AABBCC', Check::color('#AABBCC'));
        $this->expectException(ImproperActionException::class);
        Check::color('pwet');
    }
                                            
Was this example useful?
0
                                                    public function getColor(): string
    {
        return Check::color($this->color);
    }
                                            
Was this example useful?
0
                                                    public function getColor(): string
    {
        return Check::color($this->extra['color']);
    }