Created
June 8, 2012 06:38
-
-
Save iakio/2893975 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Notice: Undefined property: Test::$data となる | |
class Test extends PHPUnit_Framework_TestCase | |
{ | |
function setUp() | |
{ | |
$this->data = array( | |
array(1, 1) | |
); | |
} | |
function dp() | |
{ | |
return $this->data; | |
} | |
/** | |
* @dataProvider dp | |
*/ | |
function test1($a, $b) | |
{ | |
$this->assertEquals($a, $b); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment