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.6.40 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.39 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.38 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.37 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.36 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.35 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.34 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.33 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.32 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.31 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.30 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.29 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.28 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.27 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.26 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.25 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.24 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.23 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.22 tracks/php/exercises/leap/leap_test.php
trackler-2.0.6.21 tracks/php/exercises/leap/leap_test.php