Sug*_*rki 12 php phpunit vagrant simple-phpunit
终端只告诉我There was 1 Warning:。但是我怎样才能看到完整的警告消息以及它是从哪里触发的呢?

--- 这是我的 phpunit.xml 文件
<?xml version="1.0"?>
<phpunit
colors="true"
verbose="true"
stopOnFailure="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite name="tests">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
Run Code Online (Sandbox Code Playgroud)
添加 @AndorD\xc3\xa1vid 注释作为答案,以便更容易理解:
\n使用这个配置文件:
\n<?xml version="1.0" encoding="UTF-8"?>\n<PHPUnit\n xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd" \n displayDetailsOnTestsThatTriggerWarnings="true"\n colors="true">\n <!-- rest of the config file -->\n</phpunit>\nRun Code Online (Sandbox Code Playgroud)\n