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
static
framework
tests
unit
testsuite
Magento
TestFramework
Utility
FunctionDetectorTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\TestFramework\Utility
;
7
8
class
FunctionDetectorTest
extends
\PHPUnit\Framework\TestCase
9
{
10
public
function
testDetectFunctions
()
11
{
12
$fixturePath =
__DIR__
.
'/_files/test.txt'
;
13
$expectedResults = [
14
1 => [
'strtoupper'
,
'strtolower'
],
15
3 => [
'foo'
],
16
4 => [
'foo'
],
17
];
18
$functionDetector =
new
FunctionDetector
();
19
$lines = $functionDetector->detect($fixturePath, [
'foo'
,
'strtoupper'
,
'test'
,
'strtolower'
]);
20
$this->assertEquals($expectedResults, $lines);
21
}
22
}
Magento\TestFramework\Utility\FunctionDetector
Definition:
FunctionDetector.php:11
Magento\TestFramework\Utility
Definition:
AutogeneratedClassNotInConstructorFinder.php:6
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
Magento\TestFramework\Utility\FunctionDetectorTest
Definition:
FunctionDetectorTest.php:8
Magento\TestFramework\Utility\FunctionDetectorTest\testDetectFunctions
testDetectFunctions()
Definition:
FunctionDetectorTest.php:10