Here I wrote a quick example test and I removed that junk from the run script. Please make sure your phpunit.bat
looks like the one on this page.
Then, you should be able to run it with the command:
\php\phpunit\phpunit.bat name_of_test_file.php
For more information, here's a link to much better documentation than I could provide: https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html
Good luck and sorry about the bad info!
In "apple_test.php", does this file needs to be separated into two files?
I use command line: C:\PHP\phpunit\phpunit.bat apple_test.php
It give me: Parse error, unexpected '->' (T_OBJECT_OPERATOR) in C:\PHP\phpunit\apple_test.php on line 11?
Any suggestion