class MigrationSourceTest extends TestCase
{ use KernelTestBehaviour;
/**
* @dataProvider provideCoreRegexDataV6_3
*/
public function testCoreRegexV63(string
$subject, bool
$shouldMatch): void
{ $pattern =
$this->
getContainer()->
get('Shopware\Core\Framework\Migration\MigrationSource.core.V6_3'
)->
getNamespacePattern();
static::
assertSame($shouldMatch,
(bool) preg_match("/
$pattern/",
$subject,
$subject));
} /**
* @dataProvider provideUnitTestData
*/
public function testUnitRegex(string
$subject, bool
$shouldMatch): void
{ $source =
new MigrationSource('tmp',
[ __DIR__ . '/1' => 'My\Test\Namespace',