Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
testCodeStyle () | |
testCodeMess () | |
testCopyPaste () | |
testStrictTypes () | |
Static Public Member Functions | |
static | setUpBeforeClass () |
static | getWhitelist ( $fileTypes=['php'], $changedFilesBaseDir='', $baseFilesFolder='', $whitelistFile='/_files/whitelist/common.txt') |
Static Protected Attributes | |
static | $reportDir = '' |
static | $pathToSource = '' |
Set of tests for static code analysis, e.g. code style, code complexity, copy paste detecting, etc.
Definition at line 20 of file LiveCodeTest.php.
|
static |
Returns whitelist based on blacklist and git changed files
array | $fileTypes | |
string | $changedFilesBaseDir | |
string | $baseFilesFolder | |
string | $whitelistFile |
Definition at line 75 of file LiveCodeTest.php.
|
static |
Setup basics for all tests
Definition at line 37 of file LiveCodeTest.php.
testCodeMess | ( | ) |
Test code quality using phpmd
Definition at line 282 of file LiveCodeTest.php.
testCodeStyle | ( | ) |
Test code quality using phpcs
Definition at line 262 of file LiveCodeTest.php.
testCopyPaste | ( | ) |
Test code quality using phpcpd
Definition at line 313 of file LiveCodeTest.php.
testStrictTypes | ( | ) |
Tests whitelisted files for strict type declarations.
Definition at line 345 of file LiveCodeTest.php.
|
staticprotected |
Definition at line 30 of file LiveCodeTest.php.
|
staticprotected |
Definition at line 25 of file LiveCodeTest.php.