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 ...@@ -356,6 +356,8 @@ abstract class EcomDev_PHPUnit_Test_Case extends PHPUnit_Framework_TestCase
{ {
if (!is_array($firstArgument)) { if (!is_array($firstArgument)) {
$arguments = func_get_args(); $arguments = func_get_args();
} elseif ($firstArgument === 'auto' && $this->readAttribute($this, 'dataName')) {
$arguments = $this->readAttribute($this, 'dataName');
} else { } else {
$arguments = $firstArgument; $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