Skip to content

Instantly share code, notes, and snippets.

@robertbasic
Last active December 14, 2015 08:49
Show Gist options
  • Select an option

  • Save robertbasic/5060286 to your computer and use it in GitHub Desktop.

Select an option

Save robertbasic/5060286 to your computer and use it in GitHub Desktop.
<?php
class Foo
{
public static function dataProvider()
{
return array(array('foo'));
}
}
?>
<?php
class Test extends PHPUnit_Framework_TestCase
{
/**
* @dataProvider Foo::dataProvider
*/
public function testDataprovider($data)
{
var_dump($data);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment