I have a PHPUnit class that I want to run for multiple user types, which have their own credentials. I have the credentials in separate files which I want to include when I run the test class.
I have used the following command to include a user configuration file
phpunit --bootstrap User1.php MyTests.php
but unless I make the user credentials array global (which is obviously something I do not want to do), I don't know how I can access it from within my test class.
How can I pass a variable defined in a file I am including, into the constructor of my test class?
Thanks!