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