Jyxo\Time\TimeTest::testGet PHP Method

testGet() public method

Tests the get() method.
See also: Jyxo\Time\Time::get()
public testGet ( )
    public function testGet()
    {
        // Unixtime
        $now = time();
        $this->assertEquals(date('Y-m-d', $now), Time::get($now)->format('Y-m-d'));
        // No need to perform all tests; other possible values were tested in the constructor test
    }