When running the “mvn test” command, the PHPUnit tests are run.
The problem I have is that the setUpBeforeClass() method within a test class is not called when running the tests from maven.
Does anybody know the problem? I use the last version of PHPUnit (3.3.9) available on repositories.
When running the mvn test command, the PHPUnit tests are run. The problem I
Share
As mentioned by @khmarbaise, support of
setUpBeforeClass()has been added in PHPUnit 3.4+ (see Ticket #814) and my understanding is that you would just have to install PHPUnit 3.4+ from PEAR to get it used by Maven. Follow the install instructions.