Sha256: 80f0fe5e815b1c1ccee7258c1b4cf95662150f313984dae1ada41d538a2eb525

Contents?: true

Size: 1.66 KB

Versions: 96

Compression:

Stored size: 1.66 KB

Contents

<?php

require "pangram.php";

class PangramTest extends PHPUnit_Framework_TestCase
{
    public function testSentenceEmpty()
    {
        $this->assertFalse(isPangram(''));
    }

    public function testPangramWithOnlyLowerCase()
    {
        $this->markTestSkipped();
        $this->assertTrue(isPangram('the quick brown fox jumps over the lazy dog'));
    }

    public function testMissingCharacterX()
    {
        $this->markTestSkipped();
        $this->assertFalse(isPangram('a quick movement of the enemy will jeopardize five gunboats'));
    }

    public function testAnotherMissingCharacterX()
    {
        $this->markTestSkipped();
        $this->assertFalse(isPangram('the quick brown fish jumps over the lazy dog'));
    }

    public function testPangramWithUnderscores()
    {
        $this->markTestSkipped();
        $this->assertTrue(isPangram('the_quick_brown_fox_jumps_over_the_lazy_dog'));
    }

    public function testPangramWithNumbers()
    {
        $this->markTestSkipped();
        $this->assertTrue(isPangram('the 1 quick brown fox jumps over the 2 lazy dogs'));
    }

    public function testMissingLettersReplacedByNumbers()
    {
        $this->markTestSkipped();
        $this->assertFalse(isPangram('7h3 qu1ck brown fox jumps ov3r 7h3 lazy dog'));
    }

    public function testPangramWithMixedCaseAndPunctuation()
    {
        $this->markTestSkipped();
        $this->assertTrue(isPangram('\Five quacking Zephyrs jolt my wax bed.\\'));
    }

    public function testPangramWithNonAsciiCharacters()
    {
        $this->markTestSkipped();
        $this->assertTrue(isPangram('Victor jagt zwölf Boxkämpfer quer über den großen Sylter Deich.'));
    }
}

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
trackler-2.0.6.40 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.39 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.38 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.37 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.36 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.35 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.34 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.33 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.32 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.31 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.30 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.29 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.28 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.27 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.26 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.25 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.24 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.23 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.22 tracks/php/exercises/pangram/pangram_test.php
trackler-2.0.6.21 tracks/php/exercises/pangram/pangram_test.php