Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Creating PHPUNIT.XML file

Tags:

php

phpunit

I have the PHP unit and its working fine.Now i want to write the testcases through PHPStorm IDE.To build/run the testcases using PHPStorm it requires config file(phpunit.xml)

so can anyone tell what are the contents of PHPunit.xml. It would be great if you can provide me a sample PHPUnit.xml file and let me know where it should be placed.(if any particular folder structure)

like image 754
ajit Avatar asked Apr 18 '26 12:04

ajit


1 Answers

for new users see this post, you can use this command to generate simple phpunit.xml file

./vendor/bin/phpunit --generate-configuration
like image 57
Ali Yousefi Avatar answered Apr 20 '26 02:04

Ali Yousefi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!