You are here

DataProviderFilterTest.php in Zircon Profile 8

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

File

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

class DataProviderFilterTest extends PHPUnit_Framework_TestCase {

  /**
   * @dataProvider truthProvider
   */
  public function testTrue($truth) {
    $this
      ->assertTrue($truth);
  }
  public static function truthProvider() {
    return array(
      array(
        true,
      ),
      array(
        true,
      ),
      array(
        true,
      ),
      array(
        true,
      ),
    );
  }

  /**
   * @dataProvider falseProvider
   */
  public function testFalse($false) {
    $this
      ->assertFalse($false);
  }
  public static function falseProvider() {
    return array(
      'false test' => array(
        false,
      ),
      'false test 2' => array(
        false,
      ),
      'other false test' => array(
        false,
      ),
      'other false test2' => array(
        false,
      ),
    );
  }

}

Classes