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 585b8938 authored by Ivan Chepurnyi's avatar Ivan Chepurnyi

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

parent 3852c97c
......@@ -354,10 +354,10 @@ abstract class EcomDev_PHPUnit_Test_Case extends PHPUnit_Framework_TestCase
*/
protected function expected($firstArgument = null)
{
if (!is_array($firstArgument)) {
$arguments = func_get_args();
} elseif ($firstArgument === 'auto' && $this->readAttribute($this, 'dataName')) {
if ($firstArgument === 'auto' && $this->readAttribute($this, 'dataName')) {
$arguments = $this->readAttribute($this, 'dataName');
} elseif (!is_array($firstArgument)) {
$arguments = func_get_args();
} 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