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