Sha256: 8cd7a63288b5d3a3c7ff77a71091c8a2f33fdb60deb42560d7b8abd47f80dd0f

Contents?: true

Size: 679 Bytes

Versions: 300

Compression:

Stored size: 679 Bytes

Contents

<?php

require "leap.php";

class YearTest extends PHPUnit\Framework\TestCase
{
    public function testLeapYear()
    {
        $this->assertTrue(isLeap(1996));
    }

    public function testNonLeapYear()
    {
        $this->markTestSkipped();
        $this->assertFalse(isLeap(1997));
    }

    public function testNonLeapEvenYear()
    {
        $this->markTestSkipped();
        $this->assertFalse(isLeap(1998));
    }

    public function testCentury()
    {
        $this->markTestSkipped();
        $this->assertFalse(isLeap(1900));
    }

    public function testFourthCentury()
    {
        $this->markTestSkipped();
        $this->assertTrue(isLeap(2400));
    }
}

Version data entries

300 entries across 300 versions & 1 rubygems

Version Path
trackler-2.2.1.98 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.97 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.96 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.95 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.94 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.93 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.92 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.91 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.90 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.89 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.88 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.87 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.86 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.85 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.84 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.83 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.82 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.81 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.80 tracks/php/exercises/leap/leap_test.php
trackler-2.2.1.79 tracks/php/exercises/leap/leap_test.php