Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

phpunit4 PHP Fatal error: Cannot redeclare #27

Open
tealborder opened this issue Sep 24, 2017 · 0 comments
Open

phpunit4 PHP Fatal error: Cannot redeclare #27

tealborder opened this issue Sep 24, 2017 · 0 comments

Comments

@tealborder
Copy link

tealborder commented Sep 24, 2017

From the civicrm root, running env CIVICRM_UF=UnitTests phpunit4 ./tests/phpunit/CRM/AllTests.php returns PHP Fatal error: Cannot redeclare civicrm_api3_price_field_value_create()

printenv shows CIVICRM_UF=UnitTests is set

NO phpunit4 ./tests/phpunit/CRM/AllTests.php (returns error above)
OK phpunit4 tests/phpunit/CRM/Contact/BAO/IndividualTest.php
OK phpunit4 ./tests/phpunit/CRM/Contact/BAO/IndividualTest.php
OK phpunit4 ./tests/phpunit/CRM/PCP/BAO/PCPTest.php
OK phpunit4 tests/phpunit/api/v3/PriceFieldTest.php
OK phpunit4 tests/phpunit/api/v3/PriceFieldValueTest.php
NO phpunit4 tests/phpunit/api/v3/PcpTest.php (returns cannot redeclare civicrm_api3_pcp_create())

Any ideas? Disabled opcache and same issue. Cant find where to disable memcache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant