Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

PHPUnit installed in pipeline's environment calls an undefined method

Robert Gajda
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2018

Hi,

 

I am getting the following error while executing phpunit command in pipelines.
Command:

php bin/phpunit --stop-on-failure --filter 'functional/*' && \

 And I get this error:

Fatal error: Uncaught Error: Call to undefined method App\Kernel::bootstrapEnv() in /opt/atlassian/pipelines/agent/build/bin/phpunit on line 10Error: Call to undefined method App\Kernel::bootstrapEnv() in /opt/atlassian/pipelines/agent/build/bin/phpunit on line 10Call Stack: 0.0001 407856 1. {main}() /opt/atlassian/pipelines/agent/build/bin/phpunit:0

Has anyone faced that issue?

It looks like there have been some changes in internal docker images used by pipelines

I've got the following services used in my pipeline's script:

services:
- redis
- postgres
- mongo
- rabbit

 And here is the most important part of my pipeline script:

composer install --no-interaction && \
sh ./scripts/bootstrap-database.sh -e pipeline && \
sh ./scripts/bootstrap-database.sh -e test && \
php bin/phpunit --stop-on-failure --filter 'functional/*' && \
php bin/phpunit --stop-on-failure --filter 'unit/*'

 

1 answer

0 votes
Michał Lewandowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 14, 2018

I am struggling with same issue

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events