__DIR__ . '/a/2' => 'My\Test\A1',
__DIR__ . '/a/3' => 'My\Test\A2',
];
$b =
[ __DIR__ . '/b/1' => 'My\Test\B1',
__DIR__ . '/b/2' => 'My\Test\B2',
];
$sourceA =
new MigrationSource('a',
$a);
$sourceB =
new MigrationSource('b',
$b);
$sourceAb =
new MigrationSource('ab',
[$sourceA,
$sourceB]);
static::
assertSame(array_merge($a,
$b),
$sourceAb->
getSourceDirectories());
$sourceBa =
new MigrationSource('ba',
[$sourceB,
$sourceA]);
static::
assertSame(array_merge($b,
$a),
$sourceBa->
getSourceDirectories());
} public function testNestedMigrationSourcesExtension(): void
{ $a =
[ __DIR__ . '/a/2' => 'My\Test\A1',
__DIR__ . '/a/3' => 'My\Test\A2',
];