tags:

views:

30

answers:

1

Is there a way to define constants in PHPUnit that can be used in all your test suites? For example, say I want to be able to test on jason.dev.mysite.com sometimes and jim.dev.mysite.com sometimes, and maybe specify when I run the command on which site I want to test. Is anything like this possible?

The closest thing I found was this: http://www.phpunit.de/manual/3.4/en/appendixes.configuration.html

A: 

This should be in the bootstrap file.

Check here : http://www.phpunit.de/manual/current/en/textui.html for the bootstrap file option.

You can also check out the setUp() and setUpBeforeClass() methods, but they are related to one test class only.

Matthieu