Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Fill an array with values
<?php array_fill(int $start_index, int $count, mixed $value): array
<?php         $expectations = array_merge($expectations, array_combine(array_map(function ($extension) {

            return 'ext-'.$extension;

        }, $extensions), array_fill(0, count($extensions), array($extensionVersion, array(), array()))));



        foreach ($expectations as $packageName => $expectation) {

            list($expectedVersion, $expectedReplaces, $expectedProvides) = $expectation;
<?php         $this->mockConfig($protocol);



        $expectedCalls = array_fill(0, $expectedFailuresBeforeSuccess, array('cmd' => 'git command failing', 'return' => 1));

        $expectedCalls[] = array('cmd' => 'git command ok', 'return' => 0);



        $this->process->expects($expectedCalls, true);