Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Clarify failure messages to distinguish string and numeric zero tests

  • Loading branch information...
commit 6e6890f689db688035583f505b864e6d5acc4c50 1 parent aa83c11
@oddnoc oddnoc authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/model/DatetimeTest.php
View
4 tests/model/DatetimeTest.php
@@ -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');
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.