Skip to content

Instantly share code, notes, and snippets.

@iakio
Created June 8, 2012 06:38
Show Gist options
  • Save iakio/2893975 to your computer and use it in GitHub Desktop.
Save iakio/2893975 to your computer and use it in GitHub Desktop.
<?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