Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Invalid PHPUnit dependency in utilityHelpers.php?

edited July 14 in Feedback

It seems that PHPUnit has become a dependency in app\helpers\utilityHelpers.php - it doesn't seem right that the unit test library is a dependency in the production PHP file. The two PHPUnit imports are on on lines 45&46 of that file. It is causing class not found exception caused by a throw statement on 3180 of the same file when running a site replication. Source code was pulled from the Providence develop branch.

<br /> 45 use PHPUnit\Framework\Exception;<br /> 46 use PHPUnit\Framework\SelfDescribing;<br /> ....<br /> 3179 if (!$vo_parsed_measurement) {<br /> 3180 throw new Exception(_t('Not a valid measurement [%1]', $ps_value));<br /> 3181 }<br />

I'm guessing that 3180 should be:
3180 throw new \Exception(_t('Not a valid measurement [%1]', $ps_value));

instead? And it seems like whatever PHPUnit dependencies exist in that file should be removed?

Sign In or Register to comment.