phpunit-selenium
phpunit-selenium copied to clipboard
Can't test against snakeoil website
It would be nice if the user could set a context for the file_get_contents() call in RemoteCoverage.php. This way they could create a context that sets verify_peer and verify_peer_name to false. This error is silently ignored due to @.
Agreed. This is an issue with quite a number of vendor SDKs that I use, especially since php-5.6
The way I would solve this in general is to use a HTTP request library, but here we are trying to keep dependencies to a minimum so the proposed solution.
I will merge a Pull Request adding this support, the test Tests_Selenium2TestCase_Coverage_RemoteCoverageTest should be extended to deal with this feature.
Would you prefer a implicit stream context (http://php.net/manual/en/function.stream-context-set-default.php) or an explicit one like this file_get_contents($url, false, $streamContext) ?
The first one implies global state so the second is better imho.
See #360.