File tree 1 file changed +8
-15
lines changed
1 file changed +8
-15
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
-
3
2
/**
4
- * Bootstrap file for tests.
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
5
*/
6
6
7
- if (defined ('PHP_CODESNIFFER_IN_TESTS ' ) === false ) {
8
- define ('PHP_CODESNIFFER_IN_TESTS ' , true );
9
- }
10
-
11
- // The below two defines are needed for PHPCS 3.x.
12
- if (defined ('PHP_CODESNIFFER_CBF ' ) === false ) {
13
- define ('PHP_CODESNIFFER_CBF ' , false );
14
- }
15
-
16
- if (defined ('PHP_CODESNIFFER_VERBOSITY ' ) === false ) {
17
- define ('PHP_CODESNIFFER_VERBOSITY ' , 0 );
7
+ /**
8
+ * Define PHP 8.1 tokens
9
+ */
10
+ if (!defined ('T_READONLY ' )) {
11
+ define ('T_READONLY ' , 42401 );
18
12
}
19
13
20
- require_once __DIR__ . '/vendor/squizlabs/php_codesniffer/autoload.php ' ;
21
- require_once __DIR__ . '/vendor/phpcompatibility/php-compatibility/PHPCSAliases.php ' ;
14
+ require_once __DIR__ . '/vendor/squizlabs/php_codesniffer/tests/bootstrap.php ' ;
You can’t perform that action at this time.
0 commit comments