add speed trap

This commit is contained in:
TomasVotruba 2020-07-02 15:04:52 +02:00
parent b569784281
commit bef11bd7be
2 changed files with 16 additions and 0 deletions

View File

@ -41,6 +41,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"johnkary/phpunit-speedtrap": "^3.2",
"ocramius/package-versions": "^1.4|^1.5",
"phpunit/phpunit": "^8.5|^9.0",
"psr/event-dispatcher": "^1.0",

View File

@ -28,4 +28,19 @@
</exclude>
</whitelist>
</filter>
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">
<arguments>
<array>
<element key="slowThreshold">
<integer>400</integer>
</element>
<element key="reportLength">
<integer>30</integer>
</element>
</array>
</arguments>
</listener>
</listeners>
</phpunit>