This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » PHPUnit tests and extension settings

PHPUnit tests and extension settings

PHPUnit tests and extension settings

Thursday 11 July 2013 9:23:37 am - 2 replies

Hi, people.

As I understand it, PHPUnit does not use extensions ini settings by default.

As I write unit tests for projects custom modules, I frequently end up needing to set a bunch of ini settings to make the tests work, basically duplicating a multitude of ini settings to php.

Is there a better way of handling this? Is there any way of forcing PHPUnit to read extension and/or project ini settings?

Btw.I'm on eZ Publish 4.7, so we're talking legacy code here.

Friday 31 January 2014 8:19:33 am

Hi Arne happy.gif Emoticon

Have you found an answer for this already?

Friday 31 January 2014 9:38:23 am

Hi, Piotr.

Unfortunately not, seems you have to do it the hard way.


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from