You are here

TestWithTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/_files/TestWithTest.php

File

vendor/phpunit/phpunit/tests/_files/TestWithTest.php
View source
<?php

class TestWithTest extends PHPUnit_Framework_TestCase {

  /**
   * @testWith [0, 0, 0]
   *           [0, 1, 1]
   *           [1, 2, 3]
   *           [20, 22, 42]
   */
  public function testAdd($a, $b, $c) {
    $this
      ->assertEquals($c, $a + $b);
  }
  public static function providerMethod() {
    return array(
      array(
        0,
        0,
        0,
      ),
      array(
        0,
        1,
        1,
      ),
      array(
        1,
        1,
        3,
      ),
      array(
        1,
        0,
        1,
      ),
    );
  }

}

Classes

Namesort descending Description
TestWithTest