public function BirthdaysBirthdayTestCase::testFromEmpty in Birthdays 7
Tests empty values.
File
- ./
birthdays.test, line 29 - Unit tests for the Birthdays module.
Class
- BirthdaysBirthdayTestCase
- Unit tests for the BirthdaysBirthday class.
Code
public function testFromEmpty() {
$this
->assertEqual(BirthdaysBirthday::fromEmpty()
->toArray(), array(
'year' => 0,
'month' => 0,
'day' => 0,
));
$this
->assertIdentical(BirthdaysBirthday::fromEmpty()
->toString(), '');
$this
->assertIdentical(BirthdaysBirthday::fromEmpty()
->toUnixtime(), NULL);
$this
->assertIdentical(BirthdaysBirthday::fromEmpty()
->isEmpty(), TRUE);
}