Definition at line 5 of file SplitTest.php.
◆ testSplit()
Sabre\Uri\SplitTest::testSplit |
( |
| ) |
|
Definition at line 7 of file SplitTest.php.
References $input, Sabre\VObject\$output, and Sabre\Uri\split().
12 '/foo/bar' => [
'/foo',
'bar'],
13 '/foo/bar/' => [
'/foo',
'bar'],
14 'foo/bar/' => [
'foo',
'bar'],
15 'foo/bar' => [
'foo',
'bar'],
16 'foo/bar/baz' => [
'foo/bar',
'baz'],
17 'foo/bar/baz/' => [
'foo/bar',
'baz'],
20 '/foo/' => [
'',
'foo'],
25 "/\xC3\xA0fo\xC3\xB3/bar" => [
"/\xC3\xA0fo\xC3\xB3",
'bar'],
26 "/\xC3\xA0foo/b\xC3\xBCr/" => [
"/\xC3\xA0foo",
"b\xC3\xBCr"],
27 "foo/\xC3\xA0\xC3\xBCr" => [
"foo",
"\xC3\xA0\xC3\xBCr"],
31 foreach ($strings as
$input => $expected) {
34 $this->assertEquals($expected,
$output,
'The expected output for \'' .
$input .
'\' was incorrect
');
split($path)
Returns the 'dirname' and 'basename' for a path.
The documentation for this class was generated from the following file: