9 use \Magento\Setup\Model\Installer\Progress;
30 return [[0,0], [0, 1], [[], 1]];
46 $this->assertEquals(1, $progress->getCurrent());
63 $this->assertEquals(10, $progress->getCurrent());
69 $this->assertEquals(5, $progress->getCurrent());
75 $this->assertEquals(10, $progress->getTotal());
85 $progress =
new Progress($total, $current);
86 $this->assertEquals($current / $total, $progress->getRatio());
95 for (
$i = 10;
$i <= 20;
$i++) {
96 for ($j = 0; $j <=
$i; $j++) {
constructorExceptionInvalidTotalDataProvider()
testConstructorExceptionInvalidTotal($total, $current)
testConstructorExceptionCurrentExceedsTotal()
testRatio($total, $current)