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

testSetGetUnderline() public method

Test get/set underline
public testSetGetUnderline ( )
    public function testSetGetUnderline()
    {
        $object = new Font();
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setUnderline());
        $this->assertEquals(FONT::UNDERLINE_NONE, $object->getUnderline());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setUnderline(''));
        $this->assertEquals(FONT::UNDERLINE_NONE, $object->getUnderline());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Font', $object->setUnderline(FONT::UNDERLINE_DASH));
        $this->assertEquals(FONT::UNDERLINE_DASH, $object->getUnderline());
    }