PhpOffice\PhpPresentation\Tests\Shape\CommentTest::testGetSetDate PHP 메소드

testGetSetDate() 공개 메소드

public testGetSetDate ( )
    public function testGetSetDate()
    {
        $expectedDate = time();
        $object = new Comment();
        $this->assertInternalType('int', $object->getDate());
        $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Shape\\Comment', $object->setDate($expectedDate));
        $this->assertEquals($expectedDate, $object->getDate());
        $this->assertInternalType('int', $object->getDate());
    }