添加网站文件

This commit is contained in:
2025-12-22 13:59:40 +08:00
commit 117aaf83d1
19468 changed files with 2111999 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?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')));
}
}