Skip to content

Commit

Permalink
Update toAtom() test case to use DateTime instead of time()
Browse files Browse the repository at this point in the history
  • Loading branch information
bcrowe committed Nov 12, 2013
1 parent 68f2f8a commit 91d40e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cake/Test/TestCase/Utility/TimeTest.php
Expand Up @@ -562,7 +562,7 @@ public function testToServer() {
*/
public function testToAtom() {
$dateTime = new \DateTime;
$this->assertEquals($dateTime->format($dateTime::ATOM), $this->Time->toAtom(time()));
$this->assertEquals($dateTime->format($dateTime::ATOM), $this->Time->toAtom($dateTime->getTimestamp()));
}

/**
Expand Down

0 comments on commit 91d40e0

Please sign in to comment.