-
Notifications
You must be signed in to change notification settings - Fork 495
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #815 from WordPress/fix/replace-heroku-with-render
Replace Heroku test-server with Render alternative
- Loading branch information
Showing
4 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
|
||
namespace WpOrg\Requests\Tests; | ||
|
||
use WpOrg\Requests\Tests\TestCase; | ||
|
||
final class EnvironmentTest extends TestCase { | ||
|
||
/** | ||
* Tests whether the HTTP test server is available. | ||
* | ||
* This makes sure that the build actually fails when the HTTP test | ||
* server is not available, as all tests relying on it further down | ||
* the line will just be marked as skipped. | ||
* | ||
* @return void | ||
*/ | ||
public function testHttpTestServerAvailable() { | ||
$this->assertTrue(\REQUESTS_TEST_SERVER_HTTP_AVAILABLE); | ||
} | ||
|
||
/** | ||
* Tests whether the HTTPS test server is available. | ||
* | ||
* This makes sure that the build actually fails when the HTTPS test | ||
* server is not available, as all tests relying on it further down | ||
* the line will just be marked as skipped. | ||
* | ||
* @return void | ||
*/ | ||
public function testHttpsTestServerAvailable() { | ||
$this->assertTrue(\REQUESTS_TEST_SERVER_HTTPS_AVAILABLE); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters