PHPUnit getMockBuilder

Hi,

I'm running into problems in my PHPUnit tests calling getMockBuilder(). After a bit of digging, it appears that the most recent version of PHPUnit available to me in bamboo is 3.4, and the getMockBuilder method first appears in 3.5.

Is there any way to upgrade the PHPUnit version used?

Thanks,

Ross

2 answers

1 accepted

1 vote

If you insert the following script:

pear channel-update pear.php.net
pear config-set auto_discover 1
pear upgrade pear

pear install pear.phpunit.de/PHPUnit-3.7.1

into your instance setup script (press edit on you image configuration and paste the above lines there), you should be able to run your tests against 3.7.1.

Bamboo 4.3 will contain both PHPUnit 3.4 and PHPUnit 3.7 .

0 vote

The easiest way to install a new PHPUnit version is to use the instance setup script (available on the image configuration page). If you overwrite the default /usr/bin/phpunit path, you don't need to do anything more.

I've opened an improvement request here: https://jira.atlassian.com/browse/BAM-12110 , please watch and vote.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,496 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you