Skip to content

Start phpunit from vendor bin-dir and use correct PHP env #1814

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Start phpunit from vendor bin-dir and use correct PHP env #1814

wants to merge 1 commit into from

Conversation

cmuench
Copy link
Contributor

@cmuench cmuench commented Sep 8, 2015

It's not necessary to start php with a hard coded "php" bin. PHPUnit contains a SheeBang in the first line which correclty use the /usr/bin/env command to find the configured PHP bin of the operating system.

It's not necessary to start php with a hard coded "php" bin. PHPUnit contains a SheeBang in the first line which correclty use the /usr/bin/env command to find the configured PHP bin of the operating system.
@okorshenko okorshenko added the PS label Sep 8, 2015
@alankent
Copy link

alankent commented Sep 8, 2015

Just checking, will this work on Windows as well? Windows is second class, but good to support as well whenever possible.

@cmuench
Copy link
Contributor Author

cmuench commented Sep 9, 2015

@alankent that's true. I forgot that Windows exists :-)
In n98-magerun2 we detect the operating system version and handle windows different.

https://github.com/netz98/n98-magerun2/blob/master/src/N98/Magento/Command/Installer/SubCommand/InstallMagento.php#L264

@antonkril
Copy link
Contributor

So it's better to keep explicit php invocation

@therouv
Copy link
Contributor

therouv commented Sep 15, 2015

@antonkril I disagree. It would be better to check the operating system and keep the explicit php invocation for windows but use the environment php for all unix-based systems. Probably needs an update of the PR though.

@vancoz
Copy link

vancoz commented Sep 17, 2015

@cmuench may you please update the PR according to comments?

As for me I would keep "php " it is compatible with all platforms.

@vancoz vancoz self-assigned this Sep 17, 2015
@cmuench cmuench closed this Sep 17, 2015
okorshenko pushed a commit that referenced this pull request Dec 11, 2017
[Pangolin] Deliver changes from Sprint 14 - 2.2-develop

 - MQE-528: Robo commands should override certain files.
 - MQE-382: Adding custom "assertElementContainsAttribute" method.
 - MQE-572: Expose selenium configuration from within our .env file
 - MQE-513: added attachment (screenshots/logs) support in Allure report
 - MQE-439: .env.example parameter example comment block
 - MQE-541: changed to use stepKey for test step sequencing.
 - MQE-569: added SampleTests in module blacklist and not allowed to generate
 - MQE-570: Sanitize MAGENTO_BASE_URL (.env file) and Selenium params
 - MQE-574: selector or selectorArray attribute is required for 'click'
 - MQE-583: set release version to 1.0.0 and updated composer dependencies.
 - MQE-347: Use a remove tag instead of a remove attribute
 - MQE-386: MFTF Compatibility with Windows Machine
 - MQE-592: Audit Test Cases on Firefox/Chrome on Windows/OSX
 - MQE-599: Move composer.json, README, etc from EE to CE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants