Sha256: 197ce3d98931a4c6f64438f672c93ff3d57c25e2d29868b35512bd4dcc5cf88b

Contents?: true

Size: 680 Bytes

Versions: 96

Compression:

Stored size: 680 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

96 entries across 96 versions & 1 rubygems

Version Path
trackler-2.0.0.5 tracks/php/exercises/leap/leap_test.php
trackler-2.0.0.4 tracks/php/exercises/leap/leap_test.php
trackler-2.0.0.3 tracks/php/exercises/leap/leap_test.php
trackler-2.0.0.2 tracks/php/exercises/leap/leap_test.php
trackler-2.0.0.1 tracks/php/exercises/leap/leap_test.php
trackler-2.0.0.0 tracks/php/exercises/leap/leap_test.php
trackler-1.0.4.1 tracks/php/exercises/leap/leap_test.php
trackler-1.0.4.0 tracks/php/exercises/leap/leap_test.php
trackler-1.0.3.0 tracks/php/exercises/leap/leap_test.php
trackler-1.0.2.1 tracks/php/exercises/leap/leap_test.php
trackler-1.0.2.0 tracks/php/exercises/leap/leap_test.php
trackler-1.0.1.2 tracks/php/exercises/leap/leap_test.php
trackler-1.0.1.1 tracks/php/exercises/leap/leap_test.php
trackler-1.0.1.0 tracks/php/exercises/leap/leap_test.php
trackler-1.0.0.1 tracks/php/exercises/leap/leap_test.php
trackler-1.0.0 tracks/php/exercises/leap/leap_test.php