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
magento2-base
dev
tests
api-functional
framework
Magento
TestFramework
Assert
AssertArrayContains.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\TestFramework\Assert
;
7
8
use PHPUnit\Framework\Assert;
9
14
class
AssertArrayContains
15
{
21
public
static
function
assert
(array $expected, array $actual)
22
{
23
foreach
($expected as $key =>
$value
) {
24
Assert::assertArrayHasKey(
25
$key,
26
$actual,
27
"Expected value for key '{$key}' is missed"
28
);
29
if
(is_array(
$value
)) {
30
self::assert
(
$value
, $actual[$key]);
31
}
else
{
32
Assert::assertEquals(
33
$value
,
34
$actual[$key],
35
"Expected value for key '{$key}' doesn't match"
36
);
37
}
38
}
39
}
40
}
$value
$value
Definition:
gender.phtml:16
Magento\TestFramework\Assert
Definition:
AssertArrayContains.php:6
Magento\TestFramework\Assert\AssertArrayContains
Definition:
AssertArrayContains.php:14
Magento\TestFramework\Assert\AssertArrayContains\assert
static assert(array $expected, array $actual)
Definition:
AssertArrayContains.php:21