开发者

PHPUnit + Maven for PHP - setUpBeforeClass() not called

开发者 https://www.devze.com 2022-12-29 00:50 出处:网络
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 runnin开发者_Python百科g the tests fro

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 runnin开发者_Python百科g the tests from maven. Does anybody know the problem? I use the last version of PHPUnit (3.3.9) available on repositories.


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.


If i understand the docs of phpunit correct there is no setUpBeforeClass() for the 3.3.9 release only in PHPUnit 3.4.X Release i found such method.

0

精彩评论

暂无评论...
验证码 换一张
取 消