Make WordPress Core

Ticket #36356: 36356-tests.diff

File 36356-tests.diff, 869 bytes (added by peterwilsoncc, 8 years ago)
  • tests/phpunit/tests/http/http.php

    diff --git tests/phpunit/tests/http/http.php tests/phpunit/tests/http/http.php
    index 607eb47..1663d2b 100644
    class Tests_HTTP_HTTP extends WP_UnitTestCase { 
    107107                        // PHP's parse_url() calls this an invalid url, we handle it as a path
    108108                        array( '/://example.com/', array( 'path' => '/://example.com/' ) ),
    109109
     110                        // Schemeless URL containing colons can cause parsing errros
     111                        array( '//fonts.googleapis.com/css?family=Open+Sans:400&subset=latin', array( 'host' => 'fonts.googleapis.com', 'path' => '/css', 'query' => 'family=Open+Sans:400&subset=latin' ) ),
     112                        array( '//fonts.googleapis.com/css?family=Open+Sans:400', array( 'host' => 'fonts.googleapis.com', 'path' => '/css', 'query' => 'family=Open+Sans:400' ) ),
     113
    110114                );
    111115                /*
    112116                Untestable edge cases in various PHP: