szurubooru/tests/Support/Mockers/AbstractMocker.php
2014-05-13 21:16:28 +02:00

16 lines
295 B
PHP

<?php
abstract class AbstractMocker implements IMocker
{
public function mockMultiple($number = null)
{
return \Chibi\Database::transaction(function() use ($number)
{
$ret = [];
foreach (range(1, $number) as $_)
{
$ret []= $this->mockSingle();
}
return $ret;
});
}
}