Beispiel #1
0
 /**
  * @covers getRed
  */
 public function testGetRed()
 {
     $color = new ColorNode('#cc00ff');
     $this->assertInstanceOf('ILess\\Node\\DimensionNode', $color->getRed());
     $this->assertEquals('204', (string) $color->getRed());
 }
Beispiel #2
0
 /**
  * Returns the 'red' channel of @color
  *
  * @param ColorNode $color
  * @return string
  */
 public function red(ColorNode $color)
 {
     return $color->getRed();
 }