Commit 2844c7c9 authored by 谢宇轩's avatar 谢宇轩

test: 添加phpunit配置

parent 55038e5a
parameters:
level: 6 # you can currently choose from 9 levels (0 is the loosest and 8 is the strictest).
# Often I use the level 5 because the level 6 checks that every method returns type.
# As Symfony code generator commands does not fill those return types, it's quite inconvenient to set a level greater than 5.
# Feel free to use the one you prefer. You could even set it to 0 to start slowly
paths:
- src
# if you have tests and want to analyze this folder, uncomment the line below
- tests
phpVersion: 70200
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true">
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests/unit/</directory>
</testsuite>
</testsuites>
</phpunit>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment