Skip to content

Commit

Permalink
TEST-ONLY - DO NOT MERGE
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 13, 2023
1 parent eae1e90 commit 7a32797
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
29 changes: 28 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,33 @@
"bin/mdphpcs"
],
"require-dev": {
"phpunit/phpunit": "^9.6"
"phpunit/phpunit": "^9.6",
"mikey179/vfsstream": "^1.6.10"
},
"prefer-stable": true,
"minimum-stability": "dev",
"config": {
"preferred-install": {
"silverstripe/*": "source",
"creative-commoners/*": "source",
"symbiote/*": "source",
"dnadesign/*": "source",
"bringyourownideas/*": "source",
"colymba/*": "source",
"cwp/*": "source",
"tractorcow/*": "source",
"*": "dist"
},
"platform": {
"php": "8.1"
},
"allow-plugins": {
"composer/installers": true,
"silverstripe/recipe-plugin": true,
"silverstripe/vendor-plugin": true
}
},
"conflict": {
"silverstripe/vendor-plugin": "<1.5.2"
}
}
6 changes: 6 additions & 0 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

// php_codesniffer autoloader

use PHP_CodeSniffer\Util\Tokens;

$autoloadCandidates = [
// running from package itself as root
__DIR__ . '/../vendor/squizlabs/php_codesniffer/autoload.php',
Expand All @@ -21,6 +24,9 @@
throw new RuntimeException("Couldn't find autoloader");
}

// Required to correctly run constant definitions in CI, though not needed locally for some reason.
Tokens::$operators;

if (!defined('PHP_CODESNIFFER_VERBOSITY')) {
define('PHP_CODESNIFFER_VERBOSITY', 0);
}
Expand Down

0 comments on commit 7a32797

Please sign in to comment.