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

testConstruct() public method

Test create new instance
public testConstruct ( )
    public function testConstruct()
    {
        $object = new Font();
        $this->assertEquals('Calibri', $object->getName());
        $this->assertEquals(10, $object->getSize());
        $this->assertFalse($object->isBold());
        $this->assertFalse($object->isItalic());
        $this->assertFalse($object->isSuperScript());
        $this->assertFalse($object->isSubScript());
        $this->assertFalse($object->isStrikethrough());
        $this->assertEquals(Font::UNDERLINE_NONE, $object->getUnderline());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Style\\Color', $object->getColor());
        $this->assertEquals(Color::COLOR_BLACK, $object->getColor()->getARGB());
    }