public function testSetColor() { $expected = $this->newValues['color']; $this->calendar->setColor($expected); $actual = $this->calendar->getColor(); $this->assertSame($expected, $actual); //HEX -> rgba $this->calendar->setColor('#708090'); $actual = $this->calendar->getColor(); $this->assertSame('rgba(112,128,144,1.0)', $actual); //rgb -> rgba $this->calendar->setColor('rgb(255,42,255)'); $actual = $this->calendar->getColor(); $this->assertSame('rgba(255,42,255,1.0)', $actual); }