Build/Test Tools: Make use of PHPUnit's @requires notation.

Fixes #38256


git-svn-id: https://develop.svn.wordpress.org/trunk@38759 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn
2016-10-08 01:19:11 +00:00
parent 3fad194f64
commit b3d15125a6
3 changed files with 18 additions and 39 deletions
+2 -7
View File
@@ -3,15 +3,10 @@
/**
* @group http
* @group external-http
*
* @requires extension openssl
*/
class Tests_HTTP_Functions extends WP_UnitTestCase {
public function setUp() {
if ( ! extension_loaded( 'openssl' ) ) {
$this->markTestSkipped( 'Tests_HTTP_Functions requires openssl.' );
}
parent::setUp();
}
function test_head_request() {
// this url give a direct 200 response