PS : I am new to StackOverflow and in computer science. My question may be blurry, so please be understanding and kindly tell me what I can improve 🙂
I am currently testing my code with PhpUnit before deploying it.
Every test passes with success, but I still get this message :
ERRORS!
Tests: 108, Assertions: 154, Errors: 1.
I need to find out what this error is about but no information about this error is displayed ! I turned on all “display_errors” kind of parameters in my php.ini file but nothing seems to work.
Is there a simple way to find this error’s cause ?
Here is my command line :
C:phpphp.exe C:/Users/me/AppData/Local/Temp/ide-phpunit.php --bootstrap C:UsersmePhpstormProjectsmyProjecttestsbootstrap.php --configuration C:UsersmePhpstormProjectsmyProjecttestsphpunit.xml C:UsersmePhpstormProjectsmyProjecttestsmyTests
And here is my phpunit.xml file :
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="bootstrap.php" colors="true"
cacheResult="false" testdox="true"
displayDetailsOnTestsThatTriggerWarnings="true"
cacheDirectory=".phpunit.cache" backupGlobals="true">
</phpunit>
My bootstrap file contains only a simple autoloader, and I’m on php 8.3.7 and phpUnit 11.1.3.
Kolobo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.