Abstract DataProvider

This is a simple DataProvider implementation that other DataProvider can inherit from.


DataProvider Instance

Simple DataProvider Implementation.

class MyDataProvider extends \Samy\PhpUnit\AbstractDataProvider
{
    // ...
}

Print console

printOut - protected

Print out message to console.

self::printOut($message);

printError - protected

Print error message to console.

self::printError($message);

Load file data

csv - protected

Retrieve csv data.

$csv = self::csv($filename);

lst - protected

Retrieve lst data.

$lst = self::lst($filename);

json - protected

Retrieve json data.

$json = self::json($filename);