'subdir3' =>
[],
],
'module_b' =>
[ 'subdir1' =>
[ 'plugin4.yml' => "id: plugin4\ntest_provider: module_b",
],
],
]);
$directories =
[ 'module_a' =>
[ vfsStream::
url('modules/module_a/subdir1'
),
vfsStream::
url('modules/module_a/subdir2'
),
// Empty directory.
vfsStream::
url('modules/module_a/subdir3'
),
// Directory does not exist.
vfsStream::
url('modules/module_a/subdir4'
),
],
'module_b' => vfsStream::
url('modules/module_b/subdir1'
),
];
$discovery =
new YamlDirectoryDiscovery($directories, 'test'
);
$definitions =
$discovery->
getDefinitions();