Abstract TestCase

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


TestCase Instance

Simple TestCase Implementation.

class MyTest extends \Samy\PhpUnit\AbstractTestCase
{
    // ...
}

Print console

printOut - protected

Print out message to console.

$self = $this->printOut($message);

printError - protected

Print error message to console.

$self = $this->printError($message);

Load file data

csv - protected

Retrieve csv data.

$csv = $this->csv($filename);

lst - protected

Retrieve lst data.

$lst = $this->lst($filename);

json - protected

Retrieve json data.

$json = $this->json($filename);