public static function colors(array $color = null) { if (isset(static::$data['colors'])) { return call_user_func(static::$data['colors'], $color); } return parent::colors($color); }
public function testOverwriteColors() { $newColors = array('black' => 0x0, 'white' => 0xffffff); $this->assertCount(2, Color::colors($newColors)); $this->assertCount(2, Color::colors()); }