Build/Test tools: Revert [41278] because the PHP 5.2 environment on Travis doesn't support OpenSSL, hence the tests fail.

See #41676


git-svn-id: https://develop.svn.wordpress.org/trunk@41279 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2017-08-20 12:58:59 +00:00
parent dcfe7794c6
commit 5d068e3149
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
class Tests_HTTP_Functions extends WP_UnitTestCase { class Tests_HTTP_Functions extends WP_UnitTestCase {
public function setUp() { public function setUp() {
if ( ! extension_loaded( 'openssl' ) ) { if ( ! extension_loaded( 'openssl' ) ) {
$this->fail( 'Tests_HTTP_Functions requires openssl.' ); $this->markTestSkipped( 'Tests_HTTP_Functions requires openssl.' );
} }
parent::setUp(); parent::setUp();

View File

@ -308,7 +308,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
$this->fail( 'jpeg support unavailable' ); $this->fail( 'jpeg support unavailable' );
if ( ! extension_loaded( 'openssl' ) ) { if ( ! extension_loaded( 'openssl' ) ) {
$this->fail( 'Tests_Image_Functions::test_wp_crop_image_url() requires openssl.' ); $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url() requires openssl.' );
} }
$file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg', $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg',
@ -332,7 +332,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
public function test_wp_crop_image_url_not_exist() { public function test_wp_crop_image_url_not_exist() {
if ( ! extension_loaded( 'openssl' ) ) { if ( ! extension_loaded( 'openssl' ) ) {
$this->fail( 'Tests_Image_Functions::test_wp_crop_image_url_not_exist() requires openssl.' ); $this->markTestSkipped( 'Tests_Image_Functions::test_wp_crop_image_url_not_exist() requires openssl.' );
} }
$file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg', $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',