You are here

DataProviderIncompleteTest.php in Zircon Profile 8

File

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

class DataProviderIncompleteTest extends PHPUnit_Framework_TestCase {

  /**
   * @dataProvider incompleteTestProviderMethod
   */
  public function testIncomplete($a, $b, $c) {
    $this
      ->assertTrue(true);
  }

  /**
   * @dataProvider providerMethod
   */
  public function testAdd($a, $b, $c) {
    $this
      ->assertEquals($c, $a + $b);
  }
  public function incompleteTestProviderMethod() {
    $this
      ->markTestIncomplete('incomplete');
    return array(
      array(
        0,
        0,
        0,
      ),
      array(
        0,
        1,
        1,
      ),
    );
  }
  public static function providerMethod() {
    return array(
      array(
        0,
        0,
        0,
      ),
      array(
        0,
        1,
        1,
      ),
    );
  }

}

Classes