CRM_Utils_HttpClientTest - Use special purpose hostnames
authorTim Otten <totten@civicrm.org>
Fri, 2 Dec 2016 02:56:14 +0000 (18:56 -0800)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 2 Jan 2017 23:01:32 +0000 (10:01 +1100)
commit26b6f5880e0acb581386d83f560cb2bd54d5b5cc
tree6185f3929a78ad6a8f57e47195f6b55c679be794
parent48a8482cc1a12e4dbc17516b225486602f049562
CRM_Utils_HttpClientTest - Use special purpose hostnames

This test issues a few real HTTP requests which are supposed to succeed or
fail in a prescribed way.  However, the examples were chosen for expedience
and leached off other/unrelated sites...  but this tends to break from
time-to-time (when the example system goes to HTTPS-only or changes their
content).

With this patch, all the examples point to dedicated sites which are
purpose-built for supporting integration tests.
tests/phpunit/CRM/Utils/HttpClientTest.php