Page 1 of 1

PHP version used for unit tests

PostPosted: August 4th, 2017, 12:52 pm
by nigeln42
I have two PHP version registered - 5.6 and 7.1. In Options, the 'Interpreter' tab under PHP Tools shows the 7.1 version selected, and set for debugging. Everything works fine for normal code, however unit test are run using the 5.6.25 PHP version.

I'm probably missing something obvious but I can't seem to get unit test run under the correct PHP version.

Re: PHP version used for unit tests

PostPosted: August 10th, 2017, 8:45 am
by Miloslav Beno
Hello,

Thanks for the feedback. Please take a look into the project properties if there is 7.1 setup for the project.

Re: PHP version used for unit tests

PostPosted: August 22nd, 2017, 10:34 am
by nigeln42
Sorry for the delay in replying - been working on other things.

Not quite sure what I'm looking for. In VS project properties the only PHP reference under 'Runtime:' says PHP (unknown)(user installation).

Re: PHP version used for unit tests

PostPosted: August 28th, 2017, 11:02 am
by Miloslav Beno
Hi,

Please take a look at Application tab in project properties and try to set your prefered PHP version there. When custom is used, PHP Tools cannot be always sure what framework is used on the custom server so it find some framework according to the language setting in the project properties.

Please let me know if that helped.

Thanks,

Re: PHP version used for unit tests

PostPosted: August 30th, 2017, 8:11 am
by nigeln42
Miloslav,

Thank you so much - as I suspected it was a dumb user error. Somehow I didn't see that tab. Now fixed having selected the correct PHP version..

Thanks