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
TestFramework
Test
Unit
Unit
Matcher
MethodInvokedAtIndexTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\TestFramework\Test\Unit\Unit\Matcher
;
7
8
use
Magento\Framework\TestFramework\Unit\Matcher\MethodInvokedAtIndex
;
9
10
class
MethodInvokedAtIndexTest
extends
\PHPUnit\Framework\TestCase
11
{
12
public
function
testMatches
()
13
{
14
$invocationObject = new \PHPUnit\Framework\MockObject\Invocation\ObjectInvocation(
15
'ClassName'
,
16
'ValidMethodName'
,
17
[],
18
'void'
,
19
new
\StdClass()
20
);
21
$matcher =
new
MethodInvokedAtIndex
(0);
22
$this->assertTrue($matcher->matches($invocationObject));
23
24
$matcher =
new
MethodInvokedAtIndex
(1);
25
$matcher->matches($invocationObject);
26
$this->assertTrue($matcher->matches($invocationObject));
27
}
28
}
Magento\Framework\TestFramework\Test\Unit\Unit\Matcher\MethodInvokedAtIndexTest\testMatches
testMatches()
Definition:
MethodInvokedAtIndexTest.php:12
Magento\Framework\TestFramework\Unit\Matcher\MethodInvokedAtIndex
Definition:
MethodInvokedAtIndex.php:24
Magento\Framework\TestFramework\Test\Unit\Unit\Matcher\MethodInvokedAtIndexTest
Definition:
MethodInvokedAtIndexTest.php:10
Magento\Framework\TestFramework\Test\Unit\Unit\Matcher
Definition:
MethodInvokedAtIndexTest.php:6