Skip to content

Commit

Permalink
Clarify failure messages to distinguish string and numeric zero tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oddnoc committed Mar 9, 2012
1 parent aa83c11 commit 6e6890f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/model/DatetimeTest.php
Expand Up @@ -45,10 +45,10 @@ function testSetNullAndZeroValues() {
$this->assertNull($date->getValue(), 'Boolean FALSE evaluates to NULL');

$date = DBField::create('SS_Datetime', '0');
$this->assertEquals('1970-01-01 12:00:00', $date->getValue(), 'Zero is UNIX epoch time');
$this->assertEquals('1970-01-01 12:00:00', $date->getValue(), 'String zero is UNIX epoch time');

$date = DBField::create('SS_Datetime', 0);
$this->assertEquals('1970-01-01 12:00:00', $date->getValue(), 'Zero is UNIX epoch time');
$this->assertEquals('1970-01-01 12:00:00', $date->getValue(), 'Numeric zero is UNIX epoch time');
}

}

0 comments on commit 6e6890f

Please sign in to comment.