add week based year check

This commit is contained in:
Instrye 2020-03-06 11:10:48 +08:00
parent 8c41629e68
commit f3a52ce9a2
No known key found for this signature in database
GPG Key ID: 1A9D73C043CE3BE5

View File

@ -240,8 +240,10 @@ class TimeTest extends \CodeIgniter\Test\CIUnitTestCase
public function testGetYear()
{
$time = Time::parse('January 1, 2016');
$time2 = Time::parse('December 31, 2019');
$this->assertEquals(2016, $time->year);
$this->assertEquals(2019, $time2->year);
}
public function testGetMonth()