PhpOffice\PhpPresentation\Tests\Style\FontTest::testSetGetColor PHP Method

testSetGetColor() public method

Test get/set color
public testSetGetColor ( )
    public function testSetGetColor()
    {
        $object = new Font();
        $this->assertEquals(Color::COLOR_BLACK, $object->getColor()->getARGB());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setColor(new Color(Color::COLOR_BLUE)));
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Color', $object->getColor());
        $this->assertEquals(Color::COLOR_BLUE, $object->getColor()->getARGB());
    }