12 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
14 [$this,
'assertObsoleteFormat'],
26 $xml = simplexml_load_file($file);
29 $xml->xpath(
'//param'),
30 'The <param> node is obsolete. Instead, use the <argument name="..." xsi:type="...">' 34 $xml->xpath(
'//instance'),
35 'The <instance> node is obsolete. Instead, use the <argument name="..." xsi:type="object">' 39 $xml->xpath(
'//array'),
40 'The <array> node is obsolete. Instead, use the <argument name="..." xsi:type="array">' 44 $xml->xpath(
'//item[@key]'),
45 'The <item key="..."> node is obsolete. Instead, use the <item name="..." xsi:type="...">' 49 $xml->xpath(
'//value'),
50 'The <value> node is obsolete. Instead, provide the actual value as a text literal.' 56 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
58 [$this,
'assertCommandListClassIsNotDirectlyConfigured'],
70 $xml = simplexml_load_file($file);
71 foreach ($xml->xpath(
'//type') as
$type) {
72 $this->assertNotContains(
73 \
Magento\Framework\Console\CommandList::class,
75 'Use \Magento\Framework\Console\CommandListInterface instead of \Magento\Framework\Console\CommandList'
assertObsoleteFormat($file)
testCommandListClassIsNotDirectlyConfigured()
assertCommandListClassIsNotDirectlyConfigured($file)