Skip to content

Commit a7f9308

Browse files
committedFeb 1, 2017
typo
1 parent 29ba4cb commit a7f9308

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
 

‎tests/Utils/DateTime.createFromFormat.phpt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Test: Nette\DateTime::createFromFormat().
4+
* Test: Nette\Utils\DateTime::createFromFormat().
55
*/
66

77
declare(strict_types=1);
@@ -14,8 +14,8 @@ require __DIR__ . '/../bootstrap.php';
1414

1515
date_default_timezone_set('Europe/Prague');
1616

17-
Assert::type(Nette\Utils\DateTime::class, DateTime::createFromFormat('Y-m-d H:i:s', '2050-08-13 11:40:00'));
18-
Assert::type(Nette\Utils\DateTime::class, DateTime::createFromFormat('Y-m-d H:i:s', '2050-08-13 11:40:00', new DateTimeZone('Europe/Prague')));
17+
Assert::type(DateTime::class, DateTime::createFromFormat('Y-m-d H:i:s', '2050-08-13 11:40:00'));
18+
Assert::type(DateTime::class, DateTime::createFromFormat('Y-m-d H:i:s', '2050-08-13 11:40:00', new DateTimeZone('Europe/Prague')));
1919

2020
Assert::same('2050-08-13 11:40:00.123450', DateTime::createFromFormat('Y-m-d H:i:s.u', '2050-08-13 11:40:00.12345')->format('Y-m-d H:i:s.u'));
2121

‎tests/Utils/DateTime.from.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ Assert::same(is_int(2544000000) ? 2544000000 : '2544000000', DateTime::from(2544
2424

2525
Assert::same('1978-05-05 00:00:00', (string) DateTime::from('1978-05-05'));
2626

27-
Assert::type('DateTime', DateTime::from(new DateTime('1978-05-05')));
27+
Assert::type(DateTime::class, DateTime::from(new \DateTime('1978-05-05')));
2828

2929
Assert::same('1978-05-05 12:00:00.123450', DateTime::from(new DateTime('1978-05-05 12:00:00.12345'))->format('Y-m-d H:i:s.u'));

‎tests/Utils/DateTime.modifyClone.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Test: Nette\DateTime::modifyClone().
4+
* Test: Nette\Utils\DateTime::modifyClone().
55
*/
66

77
declare(strict_types=1);

0 commit comments

Comments
 (0)
Failed to load comments.