Currently, there are two places where tests query the API. We should hard-code responses using mocking to prevent this, per good test practice. Example log with internet disabled:
Traveler:waca Matthew$ /Applications/XAMPP/xamppfiles/bin/php ~/phpunit-4.5.0.phar
PHPUnit 4.5.0 by Sebastian Bergmann and contributors.
Configuration read from /Applications/XAMPP/xamppfiles/htdocs/waca/phpunit.xml.dist
F....E.............................................I....E........ 65 / 92 ( 70%)
....................II.....
Time: 276 ms, Memory: 7.75Mb
There were 2 errors:
1) Waca\Tests\IdentificationVerifierTest::testApiReturnsExpectedResults
Waca\Exceptions\CurlException: Remote request failed with error Failed to connect to 208.80.154.224: Host is down
/Applications/XAMPP/xamppfiles/htdocs/waca/includes/Helpers/HttpHelper.php:65
/Applications/XAMPP/xamppfiles/htdocs/waca/includes/IdentificationVerifier.php:168
/Applications/XAMPP/xamppfiles/htdocs/waca/tests/includes/IdentificationVerifierTest.php:53
2) Waca\Tests\Validation\RequestValidationHelperTest::testValidateGoodName
file_get_contents(https://en.wikipedia.org/w/api.php?action=query&list=users&ususers=TestName&format=php): failed to open stream: Host is down
/Applications/XAMPP/xamppfiles/htdocs/waca/includes/Validation/RequestValidationHelper.php:223
/Applications/XAMPP/xamppfiles/htdocs/waca/includes/Validation/RequestValidationHelper.php:71
/Applications/XAMPP/xamppfiles/htdocs/waca/tests/includes/Validation/RequestValidationHelperTest.php:58
--
There was 1 failure:
1) Warning
No tests found in class "CountActionTest".
FAILURES!
Tests: 92, Assertions: 273, Failures: 1, Errors: 2, Incomplete: 3.(Ignore "CountActionTest" failure, I was implementing that test at the time I saved this log)