Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Feb 1, 2017
1 parent 29ba4cb commit a7f9308
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/Utils/DateTime.createFromFormat.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Test: Nette\DateTime::createFromFormat().
* Test: Nette\Utils\DateTime::createFromFormat().
*/

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

date_default_timezone_set('Europe/Prague');

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

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'));

Expand Down
2 changes: 1 addition & 1 deletion tests/Utils/DateTime.from.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ Assert::same(is_int(2544000000) ? 2544000000 : '2544000000', DateTime::from(2544

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

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

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'));
2 changes: 1 addition & 1 deletion tests/Utils/DateTime.modifyClone.phpt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* Test: Nette\DateTime::modifyClone().
* Test: Nette\Utils\DateTime::modifyClone().
*/

declare(strict_types=1);
Expand Down

0 comments on commit a7f9308

Please sign in to comment.