Passing the http_proxy env to Vagrantfile (config and bash provision).
Passing the http_proxy env to Vagrantfile (config and bash provision).

Will display two markers when http_proxy is not empty:
marker 1: "Set machine proxy to proxy.company.local:8080"
marker 2: "==> default: Setting environment variables http_proxy and https_proxy to proxy.company.local:8080"

```bash
[bogdan@elv phpunit-selenium-vagrant]$ export http_proxy="proxy.company.local:8080"
[bogdan@elv phpunit-selenium-vagrant]$ vagrant provision
"Set machine proxy to proxy.company.local:8080"
==> default: Configuring proxy for Apt...
==> default: Configuring proxy environment variables...
==> default: Running provisioner: shell...
    default: Running: inline script
==> default: stdin: is not a tty
==> default: Setting environment variables http_proxy and https_proxy to proxy.company.local:8080
```

@todo check linux / windows lowercase / uppcase http_proxy vs https_proxy.

@todo check possible issue: with 'export http_proxy="proxy.company.local:8080"; vagrant up', the selfTest displays 2 possible issues:
@fixme check "==> default: Setting system property http.proxyHost to " - proxy not being passed or debug message is not checked before display
@fixme check that Google Chrome uses the correct proxy settings

```bash

==> default: Starting Selenium standalone server ...
==> default: Wait ...
==> default: Setting system property http.proxyHost to
==> default: Setting system property http.proxyPort to
==> default: Setting system property webdriver.chrome.driver to ./build/chromedriver
==> default: /home/vagrant/phpunit-selenium-env/start_phpunit_tests.sh: 2: /home/vagrant/phpunit-selenium-env/start_phpunit_tests.sh:
==> default: Bad substitution
==> default: Starting tests ...
==> default: PHPUnit 5.0.8 by Sebastian Bergmann and contributors.
==> default: Starting ChromeDriver 2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3) on port 14372
==> default: Only local connections are allowed.
==> default: F
==> default: Starting ChromeDriver 2.15.322448 (52179c1b310fec1797c81ea9a20326839860b7d3) on port 22406
==> default: Only local connections are allowed.
==> default: F
==> default: .
==> default: .                                                                4 / 4 (100%)
==> default:
==> default: Time: 19.57 seconds, Memory: 11.00Mb
==> default:
==> default: There were 2 failures:
==> default:
==> default: 1) tests\ChromeTest::testPageHasTitle
==> default: Failed asserting that 'https://github.com/ is not available' contains "GitHub".
==> default:
==> default: /home/vagrant/phpunit-selenium-env/tests/ChromeTest.php:24
==> default:
==> default: 2) tests\ChromeTest::testPageHas25Items
==> default: Failed asserting that actual size 0 matches expected size 25.
==> default:
==> default: /home/vagrant/phpunit-selenium-env/tests/ChromeTest.php:33
==> default:
==> default: FAILURES!
==> default: Tests: 4, Assertions: 4, Failures: 2.
==> default: Stopping previous processes ...
==> default:
==> default: phpunit-selenium-env > runAllTargets:
==> default:
==> default:
==> default: BUILD FINISHED
==> default:
==> default: Total time: 28.2441 seconds

```

bogdananton/Selenium-Setup-VM