سلام ,
من تنظیمات phpunit.xml رو تغییر می دم ولی اعمال نمیشن , مثلا colors="true" اعمال نمیشه .. اما اگر به صورت flag در cmd پاس بدم کار می کنه ..
لطفا راهنمایی کنید .
<?xml version="1.0" encoding="UTF-8" ?>
<phpunit bootstrap="vendor/autoload.php"
colors="always"
stopOnFailure="true"
verbose="true"
testdox="true"
>
<testsuites>
<testsuite name="test 1">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>
سلام و احترام
لطفا کانفیگ های زیر رو تست کنید
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap = "vendor/autoload.php"
backupGlobals = "false"
backupStaticAttributes = "false"
colors = "true"
convertErrorsToExceptions = "true"
convertNoticesToExceptions = "true"
convertWarningsToExceptions = "true"
processIsolation = "false"
stopOnFailure = "false"
syntaxCheck = "false">
<testsuites>
<testsuite name="Project Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
</php>
</phpunit>
لطفا آدرس فایل کانفیگتون رو در کامندلاین مشخص کنید تا phpunit فایل کانفیگ شما رو پیدا کنه
phpunit --configuration=path/to/phpunit.xml
بعد از اعمال تغییرات باید دستور زیر رو اجرا کنید تا composer autoload اپدیت بشه
composer dump autoload