We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e9c250 commit 7948aecCopy full SHA for 7948aec
.gitignore
@@ -1,2 +1,3 @@
1
vendor/
2
-tools/
+tools/
3
+.phpunit.result.cache
tests/GrapeTest.php
@@ -34,4 +34,17 @@ public function test_getTimezone_function(): void
34
$expected = "America/New_York";
35
$this->assertEquals($timeZone, $expected);
36
}
37
+ public function test_toTime_function(): void
38
+ {
39
+ $time = Grape::time(1687350065)->toTime();
40
+ $expected = '12:21:05';
41
+ $this->assertEquals($time, $expected);
42
+ }
43
+ public function test_toRaw_function(): void
44
45
+ $time = Grape::time(1687350065)->toRaw();
46
+ $expected = '2023-06-21 12:21:05';
47
48
49
+
50
0 commit comments