We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit f53d0b08 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

+ Added auto parameter to expectation, that reads automatically dataProvider name

parent d3119eaa
......@@ -356,6 +356,8 @@ abstract class EcomDev_PHPUnit_Test_Case extends PHPUnit_Framework_TestCase
{
if (!is_array($firstArgument)) {
$arguments = func_get_args();
} elseif ($firstArgument === 'auto' && $this->readAttribute($this, 'dataName')) {
$arguments = $this->readAttribute($this, 'dataName');
} else {
$arguments = $firstArgument;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment