How does PHPUnit set the order in which test files are loaded?

for example, there are two files in the test directory:
aTest.php
bTest.php

I want it to load bTest.php before loading aTest.php

according to the document, you only need to specify it in phpunit.xml:

phpunit Index -v
When

, I was prompted to use this phpunit.xml file, but I didn"t specify the order in which the files were loaded. What"s going on?

(I need to rely on the return value of a test method in bTest.php in aTest.php.)

Jul.09,2022
Menu