Cassandra\DateTest::testConstruct PHP 메소드

testConstruct() 공개 메소드

public testConstruct ( )
    public function testConstruct()
    {
        $date = new Date(0);
        $this->assertEquals($date->seconds(), 0);
        $date = new Date(1);
        $this->assertEquals($date->seconds(), 0);
        // Truncated
        $date = new Date(self::SECONDS_PER_DAY);
        $this->assertEquals($date->seconds(), self::SECONDS_PER_DAY);
    }