Sha256: 9bb9439852c228924a3ebc8d0e624ce71b55239a0542692bffaaee2fa6c95921

Contents?: true

Size: 1.08 KB

Versions: 226

Compression:

Stored size: 1.08 KB

Contents

<?php

require "pascals-triangle.php";

class PascalsTriangleTest extends PHPUnit\Framework\TestCase
{
    public function testZeroRows()
    {
        $this->assertSame([], pascalsTriangleRows(0));
    }

    public function testSingleRow()
    {
        $this->markTestSkipped();
        $this->assertSame([[1]], pascalsTriangleRows(1));
    }
    public function testTwoRows()
    {
        $this->markTestSkipped();
        $this->assertSame([[1], [1, 1]], pascalsTriangleRows(2));
    }
    public function testThreeRows()
    {
        $this->markTestSkipped();
        $this->assertSame([[1], [1, 1], [1, 2, 1]], pascalsTriangleRows(3));
    }
    public function testFourRows()
    {
        $this->markTestSkipped();
        $this->assertSame([[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], pascalsTriangleRows(4));
    }
    public function testNegativeRows()
    {
        $this->markTestSkipped();
        $this->assertEquals(-1, pascalsTriangleRows(-1));
    }
    public function testNullNoRows()
    {
        $this->markTestSkipped();
        $this->assertEquals(-1, pascalsTriangleRows(null));
    }
}

Version data entries

226 entries across 226 versions & 1 rubygems

Version Path
trackler-2.2.1.159 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.158 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.157 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.156 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.155 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.154 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.153 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.152 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.151 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.150 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.149 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.148 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.147 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.146 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.145 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.144 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.143 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.142 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.141 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php
trackler-2.2.1.140 tracks/php/exercises/pascals-triangle/pascals-triangle_test.php