Jyxo\Time\TimeTest::testGet PHP Метод

testGet() публичный Метод

Tests the get() method.
См. также: 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
    }