18 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
40 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
46 $xml = simplexml_load_file(
$path);
60 $invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
66 $xml = simplexml_load_file(
$path);
68 foreach (\
Magento\Framework\
App\Utility\Classes::getXmlAttributeValues(
75 $classes = array_merge(
77 \
Magento\Framework\
App\Utility\Classes::getXmlAttributeValues($xml,
'/layout//@module',
'module')
83 '/layout//action[@method="addTab"]/block' 106 foreach ($names as
$name) {
108 if ($softComparison) {
109 $this->assertNotRegExp(
'/\//',
$name);
111 $this->assertFalse(
false === strpos(
$name,
'_'));
112 $this->assertRegExp(
'/^([A-Z][A-Za-z\d_]+)+$/',
$name);
114 if (strpos(
$name,
'Magento') ===
false) {
117 $this->assertFalse(
false === strpos(
$name,
'\\'));
118 $this->assertRegExp(
'/^([A-Z\\\\][A-Za-z\d\\\\]+)+$/',
$name);
120 }
catch (\PHPUnit\Framework\AssertionFailedError $e) {
121 $factoryNames[] =
$name;
125 $this->fail(
"Obsolete factory name(s) detected in {$file}:" .
"\n" . implode(
"\n", $factoryNames));
elseif(isset( $params[ 'redirect_parent']))
static collectPhpCodeClasses($contents, &$classes=[])
static getCallbackClass($callbackName)
const INCLUDE_NON_CLASSES
static collectClassesInConfig(\SimpleXMLElement $xml)
static getXmlAttributeValues(\SimpleXMLElement $xml, $xPath, $attributeName)
static collectLayoutClasses(\SimpleXMLElement $xml)
$_option $_optionId $class
_assertNonFactoryName($names, $file, $softComparison=false, $moduleBlock=false)
static getXmlNodeValues(\SimpleXMLElement $xml, $xPath)
if(!isset($_GET['name'])) $name