|
14 | 14 |
|
15 | 15 | declare(strict_types=1);
|
16 | 16 |
|
| 17 | +use PHP_CodeSniffer\Config; |
| 18 | +use PHP_CodeSniffer\Util\Standards; |
| 19 | + |
17 | 20 | $myStandardName = 'MO4';
|
18 | 21 |
|
19 | 22 | require_once __DIR__.'/../vendor/squizlabs/php_codesniffer/tests/bootstrap.php';
|
20 | 23 |
|
21 | 24 | // Add this Standard.
|
22 | | -PHP_CodeSniffer\Config::setConfigData( |
| 25 | +Config::setConfigData( |
23 | 26 | 'installed_paths',
|
24 | 27 | __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.$myStandardName,
|
25 | 28 | true
|
26 | 29 | );
|
27 | 30 |
|
28 | 31 | // Ignore all other Standards in tests.
|
29 | | -$standards = PHP_CodeSniffer\Util\Standards::getInstalledStandards(); |
| 32 | +$standards = Standards::getInstalledStandards(); |
30 | 33 | $standards[] = 'Generic';
|
31 | 34 |
|
32 | 35 | $ignoredStandardsStr = implode(
|
|
0 commit comments