Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Commit

Permalink
Tests: fix hhvm compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Jan 9, 2016
1 parent 6ebd047 commit 3304c12
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/KdybyTests/Clock/ConstantProvider.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class ConstantProviderTest extends Tester\TestCase

Assert::equal($datetime, $tp->getDateTime());
Assert::equal($date, $tp->getDate());
Assert::equal($time, $tp->getTime());
Assert::equal($timezone, $tp->getTimezone());
Assert::equal($time->format('%h:%i:%s'), $tp->getTime()->format('%h:%i:%s'));
Assert::equal($timezone->getName(), $tp->getTimezone()->getName());
}


Expand Down
4 changes: 2 additions & 2 deletions tests/KdybyTests/Clock/CurrentProvider.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class CurrentProviderTest extends Tester\TestCase
sleep(2);

Assert::notEqual($datetime, $tp->getDateTime());
Assert::notEqual($time, $tp->getTime());
Assert::equal($timezone, $tp->getTimezone());
Assert::notEqual($time->format('%h:%i:%s'), $tp->getTime()->format('%h:%i:%s'));
Assert::equal($timezone->getName(), $tp->getTimezone()->getName());
}


Expand Down
4 changes: 2 additions & 2 deletions tests/KdybyTests/Clock/MutableProvider.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class MutableProviderTest extends Tester\TestCase

Assert::equal($datetime, $tp->getDateTime());
Assert::equal($date, $tp->getDate());
Assert::equal($time, $tp->getTime());
Assert::equal($timezone, $tp->getTimezone());
Assert::equal($time->format('%h:%i:%s'), $tp->getTime()->format('%h:%i:%s'));
Assert::equal($timezone->getName(), $tp->getTimezone()->getName());
}


Expand Down

0 comments on commit 3304c12

Please sign in to comment.