~tcuthbert/wordpress/openstack-objectstorage

« back to all changes in this revision

Viewing changes to vendor/phpunit/phpunit/tests/_files/DataProviderFilterTest.php

  • Committer: Jacek Nykis
  • Date: 2015-02-11 15:35:31 UTC
  • Revision ID: jacek.nykis@canonical.com-20150211153531-hmy6zi0ov2qfkl0b
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
class DataProviderFilterTest extends PHPUnit_Framework_TestCase
 
3
{
 
4
    /**
 
5
     * @dataProvider truthProvider
 
6
     */
 
7
    public function testTrue($truth)
 
8
    {
 
9
        $this->assertTrue($truth);
 
10
    }
 
11
 
 
12
    public static function truthProvider()
 
13
    {
 
14
        return array(
 
15
           array(true),
 
16
           array(true),
 
17
           array(true),
 
18
           array(true)
 
19
        );
 
20
    }
 
21
 
 
22
    /**
 
23
     * @dataProvider falseProvider
 
24
     */
 
25
    public function testFalse($false)
 
26
    {
 
27
        $this->assertFalse($false);
 
28
    }
 
29
 
 
30
    public static function falseProvider()
 
31
    {
 
32
        return array(
 
33
          'false test'=>array(false),
 
34
          'false test 2'=>array(false),
 
35
          'other false test'=>array(false),
 
36
          'other false test2'=>array(false)
 
37
        );
 
38
    }
 
39
}