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