ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Sabre\Uri\BuildTest Class Reference
+ Inheritance diagram for Sabre\Uri\BuildTest:
+ Collaboration diagram for Sabre\Uri\BuildTest:

Public Member Functions

 testBuild ($value)
 buildUriData More...
 
 buildUriData ()
 

Detailed Description

Definition at line 5 of file BuildTest.php.

Member Function Documentation

◆ buildUriData()

Sabre\Uri\BuildTest::buildUriData ( )

Definition at line 19 of file BuildTest.php.

19  {
20 
21  return [
22  ['http://example.org/'],
23  ['http://example.org/foo/bar'],
24  ['//example.org/foo/bar'],
25  ['/foo/bar'],
26  ['http://example.org:81/'],
27  ['http://user@example.org:81/'],
28  ['http://example.org:81/hi?a=b'],
29  ['http://example.org:81/hi?a=b#c=d'],
30  // [ '//example.org:81/hi?a=b#c=d'], // Currently fails due to a
31  // PHP bug.
32  ['/hi?a=b#c=d'],
33  ['?a=b#c=d'],
34  ['#c=d'],
35  ['file:///etc/hosts'],
36  ['file://localhost/etc/hosts'],
37  ];
38 
39  }

◆ testBuild()

Sabre\Uri\BuildTest::testBuild (   $value)

buildUriData

Definition at line 10 of file BuildTest.php.

References Sabre\Uri\build().

10  {
11 
12  $this->assertEquals(
13  $value,
14  build(parse_url($value))
15  );
16 
17  }
build(array $parts)
This function takes the components returned from PHP's parse_url, and uses it to generate a new uri...
Definition: functions.php:221
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: