Sindbad~EG File Manager

Current Path : /home/escuelai/public_html/biblioteca.escuelaintegral.edu.uy/vendor/sabre/uri/tests/
Upload File :
Current File : /home/escuelai/public_html/biblioteca.escuelaintegral.edu.uy/vendor/sabre/uri/tests/BuildTest.php

<?php

namespace Sabre\Uri;

class BuildTest extends \PHPUnit_Framework_TestCase{

    /**
     * @dataProvider buildUriData
     */
    function testBuild($value) {

        $this->assertEquals(
            $value,
            build(parse_url($value))
        );

    }

    function buildUriData() {

        return [
            ['http://example.org/'],
            ['http://example.org/foo/bar'],
            ['//example.org/foo/bar'],
            ['/foo/bar'],
            ['http://example.org:81/'],
            ['http://user@example.org:81/'],
            ['http://example.org:81/hi?a=b'],
            ['http://example.org:81/hi?a=b#c=d'],
            // [ '//example.org:81/hi?a=b#c=d'], // Currently fails due to a
            // PHP bug.
            ['/hi?a=b#c=d'],
            ['?a=b#c=d'],
            ['#c=d'],
            ['file:///etc/hosts'],
            ['file://localhost/etc/hosts'],
        ];

    }

}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists