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
testsuite
Magento
Test
Legacy
WordsTest.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Test\Legacy
;
11
12
use
Magento\Framework\Component\ComponentRegistrar
;
13
14
class
WordsTest
extends
\PHPUnit\Framework\TestCase
15
{
19
protected
static
$_wordsFinder
;
20
21
public
static
function
setUpBeforeClass
()
22
{
23
self::$_wordsFinder = new \Magento\TestFramework\Inspection\WordsFinder(
24
glob(
__DIR__
.
'/_files/words_*.xml'
),
25
BP
,
26
new
ComponentRegistrar
()
27
);
28
}
29
30
public
function
testWords
()
31
{
32
$invoker = new \Magento\Framework\App\Utility\AggregateInvoker($this);
33
$invoker(
37
function
($file) {
38
$words = self::$_wordsFinder->findWords(realpath($file));
39
if
($words) {
40
$this->fail(
"Found words: '"
. implode(
"', '"
, $words) .
"' in '{$file}' file"
);
41
}
42
},
43
\Magento\Framework\App\Utility\Files::init
()->getAllFiles()
44
);
45
}
46
}
Magento\Framework\App\Utility\Files\init
static init()
Definition:
Files.php:147
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
Magento\Test\Legacy\WordsTest
Definition:
WordsTest.php:14
Magento\Framework\Component\ComponentRegistrar
Definition:
ComponentRegistrar.php:16
BP
const BP
Definition:
autoload.php:14
Magento\Test\Legacy\WordsTest\setUpBeforeClass
static setUpBeforeClass()
Definition:
WordsTest.php:21
Magento\Test\Legacy\WordsTest\testWords
testWords()
Definition:
WordsTest.php:30
Magento\Test\Legacy
Definition:
AutogeneratedClassNotInConstructorTest.php:6
Magento\Test\Legacy\WordsTest\$_wordsFinder
static $_wordsFinder
Definition:
WordsTest.php:19