Robert Korulczyk
7 years ago
committed by
Alexander Makarov
2 changed files with 13 additions and 23 deletions
@ -1,22 +0,0 @@
|
||||
<?php |
||||
/** |
||||
* @link http://www.yiiframework.com/ |
||||
* @copyright Copyright (c) 2008 Yii Software LLC |
||||
* @license http://www.yiiframework.com/license/ |
||||
*/ |
||||
|
||||
/* @var $this \yiiunit\framework\db\CommandTest */ |
||||
|
||||
$rows = call_user_func(function () { |
||||
if (false) { |
||||
yield []; |
||||
} |
||||
}); |
||||
|
||||
$command = $this->getConnection()->createCommand(); |
||||
$command->batchInsert( |
||||
'{{customer}}', |
||||
['email', 'name', 'address'], |
||||
$rows |
||||
); |
||||
$this->assertEquals(0, $command->execute()); |
Loading…
Reference in new issue