Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
ObjectManager
Test
Unit
Config
Mapper
ArgumentParserTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\ObjectManager\Test\Unit\Config\Mapper
;
7
8
use \Magento\Framework\ObjectManager\Config\Mapper\ArgumentParser;
9
10
class
ArgumentParserTest
extends
\PHPUnit\Framework\TestCase
11
{
12
public
function
testParse
()
13
{
14
$document = new \DOMDocument();
15
$document->load(
__DIR__
.
'/_files/argument_parser.xml'
);
16
$parser =
new
ArgumentParser
();
17
$actual = $parser->parse($document->getElementsByTagName(
'argument'
)->item(0));
18
$expected = [
19
'item'
=> [
20
'one'
=> [
'name'
=>
'one'
,
'value'
=>
'value1'
],
21
'nested'
=> [
22
'name'
=>
'nested'
,
23
'item'
=> [
24
'two'
=> [
'name'
=>
'two'
,
'value'
=>
'value2'
],
25
'three'
=> [
'name'
=>
'three'
,
'value'
=>
'value3'
],
26
],
27
],
28
],
29
];
30
$this->assertSame($expected, $actual);
31
}
32
}
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
Magento\Framework\ObjectManager\Config\Mapper\ArgumentParser
Definition:
ArgumentParser.php:15
Magento\Framework\ObjectManager\Test\Unit\Config\Mapper
Definition:
ArgumentParserTest.php:6
Magento\Framework\ObjectManager\Test\Unit\Config\Mapper\ArgumentParserTest
Definition:
ArgumentParserTest.php:10
Magento\Framework\ObjectManager\Test\Unit\Config\Mapper\ArgumentParserTest\testParse
testParse()
Definition:
ArgumentParserTest.php:12