Skip to content

Commit

Permalink
Avoid php unit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lochmueller committed Nov 20, 2024
1 parent ac423ba commit d38efb2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"php-cs-fixer fix --config Resources/Private/Build/PhpCsFixer.php --cache-file=.Build/phpcs.cache"
],
"code:phpstan": [
"phpstan analyse -c phpstan.neon"
"phpstan analyse -c phpstan.neon --memory-limit=1G"
],
"test:unit": [
"phpunit -c phpunit.xml --coverage-text --testdox"
Expand Down
11 changes: 9 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" bootstrap=".Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php" executionOrder="random" resolveDependencies="true" beStrictAboutOutputDuringTests="true" failOnRisky="true" stopOnSkipped="false" failOnWarning="true" colors="true" cacheDirectory=".phpunit.cache" requireCoverageMetadata="true" beStrictAboutCoverageMetadata="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="true"
bootstrap=".Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTestsBootstrap.php" colors="true"
processIsolation="false" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false"
stopOnSkipped="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.1/phpunit.xsd"
cacheDirectory=".phpunit.cache" backupStaticProperties="false" requireCoverageMetadata="false">
<testsuites>
<testsuite name="language_detection tests">
<directory>Tests</directory>
<exclude>Tests/Unit/AbstractUnitTest.php</exclude>
<exclude>Tests/Unit/Event/AbstractEventTest.php</exclude>
<exclude>Tests/Unit/Handler/AbstractHandlerTest.php</exclude>
</testsuite>
</testsuites>
<coverage>
Expand All @@ -15,4 +22,4 @@
<directory suffix=".php">Classes</directory>
</include>
</source>
</phpunit>
</phpunit>

0 comments on commit d38efb2

Please sign in to comment.