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 edited

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
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events