mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
add week based year check
This commit is contained in:
parent
8c41629e68
commit
f3a52ce9a2
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user