Skip to content

Commit

Permalink
Dependency-check tests as well
Browse files Browse the repository at this point in the history
SimpleXML was used by ARES until #225, now only in tests, in MichalSpacekCz\Feed\ExportsTest
  • Loading branch information
spaze committed Nov 22, 2024
1 parent 44903c8 commit 5e67c4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/composer-dependency-analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
use ShipMonk\ComposerDependencyAnalyser\Config\ErrorType;

return (new Configuration())
->setFileExtensions(['php', 'phpt'])
->addPathToScan(__DIR__ . '/tests', true)

// Add classes from services.neon and extensions.neon
->addForceUsedSymbols(DiServices::getAllClasses())

Expand All @@ -18,7 +21,6 @@
->ignoreErrorsOnExtensions([
'ext-gd', // Used by e.g. Nette\Http\FileUpload::toImage which is used by MichalSpacekCz\Media\VideoThumbnails::validateUpload()
'ext-pcntl', // Used by latte/latte Latte\Tools\Linter and nette/tester's Tester\Runner\CliTester
'ext-simplexml', // Used in MichalSpacekCz\Feed\ExportsTest
], [ErrorType::UNUSED_DEPENDENCY])

// shipmonk/composer-dependency-analyser#203
Expand Down
2 changes: 1 addition & 1 deletion app/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"ext-openssl": "*",
"ext-pcntl": "*",
"ext-pdo": "*",
"ext-simplexml": "*",
"composer/pcre": "^3.3.1",
"contributte/translation": "^2.0",
"latte/latte": "^3.0.3",
Expand Down Expand Up @@ -55,6 +54,7 @@
"symfony/polyfill-mbstring": "*"
},
"require-dev": {
"ext-simplexml": "*",
"jetbrains/phpstorm-attributes": "^1.0",
"nette/tester": "^2.4.3",
"php-parallel-lint/php-console-highlighter": "^1.0",
Expand Down
7 changes: 4 additions & 3 deletions app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e67c4c

Please sign in to comment.