I have been working with PHPUnit and have been trying to find a way to define global constants within my tests. I want to have certain constants that can be used across multiple test cases.
I know that PHPUnit provides annotations like `@beforeClass` and `@afterClass` for setting up and tearing down test fixtures. However, I couldn't find a way to define global constants using these annotations.
Is there any other way to define global constants in PHPUnit? I would appreciate any help or guidance on this matter. Thank you.

User 3: I had a similar requirement in my PHPUnit tests, and I found an alternative solution that worked well for defining global constants.
Instead of using separate files or including them in each test case, I opted to define the global constants in a bootstrap file. The bootstrap file is automatically executed before running any tests, ensuring that the constants are available throughout the test suite.
To set this up, you can create a `bootstrap.php` file in your PHPUnit project directory. Within this file, define your global constants using `define()` like you would in any PHP script. Here's an example:
Once you have defined your constants in `bootstrap.php`, you can include it in your PHPUnit configuration file, typically `phpunit.xml`. Add the following line within the `<phpunit>` tag:
By configuring PHPUnit with the `bootstrap` attribute set to your `bootstrap.php` file, PHPUnit will automatically execute it before running any tests. This ensures that your global constants are available in all the test cases.
This approach keeps your codebase clean, as the constants are defined separately from the actual test files, and you don't need to include or require any additional files within each test case.
Remember to update the `bootstrap.php` file whenever modifications to the constants are required.
I hope this solution helps you define and use global constants effectively in your PHPUnit tests. Let me know if you have any further questions!