You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
483 B
23 lines
483 B
11 months ago
|
<?php
|
||
|
|
||
|
namespace Songshenzong\Support\Test\Core;
|
||
|
|
||
|
use Songshenzong\Support\Time;
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
class TimeTest extends TestCase
|
||
|
{
|
||
|
public function testDates()
|
||
|
{
|
||
|
$expect = [
|
||
|
'2019-09-10',
|
||
|
'2019-09-11',
|
||
|
'2019-09-12',
|
||
|
];
|
||
|
|
||
|
self::assertEquals($expect, Time::dates('2019-09-10', '2019-09-12'));
|
||
|
|
||
|
self::assertEquals($expect, Time::dates(strtotime('2019-09-10'), strtotime('2019-09-12')));
|
||
|
}
|
||
|
}
|