PHP version used for unit tests

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

PHP version used for unit tests

Postby nigeln42 » August 4th, 2017, 12:52 pm

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.
nigeln42
 
Posts: 9
Joined: April 13th, 2015, 3:43 pm

Re: PHP version used for unit tests

Postby Miloslav Beno » August 10th, 2017, 8:45 am

Hello,

Thanks for the feedback. Please take a look into the project properties if there is 7.1 setup for the project.
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: PHP version used for unit tests

Postby nigeln42 » August 22nd, 2017, 10:34 am

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).
nigeln42
 
Posts: 9
Joined: April 13th, 2015, 3:43 pm

Re: PHP version used for unit tests

Postby Miloslav Beno » August 28th, 2017, 11:02 am

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,
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: PHP version used for unit tests

Postby nigeln42 » August 30th, 2017, 8:11 am

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
nigeln42
 
Posts: 9
Joined: April 13th, 2015, 3:43 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 58 guests

cron

User Control Panel

Login

Who is online

In total there are 58 users online :: 0 registered, 0 hidden and 58 guests (based on users active over the past 5 minutes)
Most users ever online was 256 on March 28th, 2024, 9:42 am

Users browsing this forum: No registered users and 58 guests