You are here

function BirthdaysBirthdayTestCase::testLeapYear in Birthdays 7

Tests BirthdaysBirthday::isLeapYear().

File

./birthdays.test, line 97
Unit tests for the Birthdays module.

Class

BirthdaysBirthdayTestCase
Unit tests for the BirthdaysBirthday class.

Code

function testLeapYear() {
  $this
    ->assertTrue(BirthdaysBirthday::isLeapYear(2012));
  $this
    ->assertTrue(BirthdaysBirthday::isLeapYear(2000));
  $this
    ->assertFalse(BirthdaysBirthday::isLeapYear(2001));
}