Add simplepie
This commit is contained in:
parent
f5826105bf
commit
9f7ae0e95f
909 changed files with 38245 additions and 0 deletions
1
simplepie/test/absolutize/RFC3986.5.4/README
Normal file
1
simplepie/test/absolutize/RFC3986.5.4/README
Normal file
|
@ -0,0 +1 @@
|
|||
The tests enclosed within come from RFC 3986 section 5.4 and all share the same base URL
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/1.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/1.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_1 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '../../../g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/10.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/10.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_10 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = './g/.';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/11.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/11.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_11 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g/./h';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g/h';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/12.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/12.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_12 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g/../h';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/h';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/13.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/13.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_13 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g;x=1/./y';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g;x=1/y';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/14.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/14.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_14 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g;x=1/../y';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/y';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/15.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/15.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_15 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g?y/./x';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g?y/./x';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/16.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/16.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_16 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g?y/../x';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g?y/../x';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/17.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/17.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_17 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g#s/./x';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g#s/./x';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/18.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/18.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_18 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g#s/../x';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g#s/../x';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/19.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/19.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_19 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'http:g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http:g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/2.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/2.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_2 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '../../../../g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/3.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/3.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_3 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '/./g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/4.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/4.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_4 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '/../g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/5.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/5.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_5 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g.';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g.';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/6.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/6.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_6 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '.g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/.g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/7.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/7.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_7 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g..';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g..';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/8.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/8.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_8 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '..g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/..g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/9.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/abnormal/9.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Abnormal_9 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = './../g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
25
simplepie/test/absolutize/RFC3986.5.4/base.php
Normal file
25
simplepie/test/absolutize/RFC3986.5.4/base.php
Normal file
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function SimplePie_Absolutize_Test_RFC3986()
|
||||
{
|
||||
// Ugly hack so it only applies to this and none of its children
|
||||
if (!is_subclass_of($this, 'SimplePie_Absolutize_Test_RFC3986'))
|
||||
{
|
||||
$this->test = false;
|
||||
}
|
||||
// Only call the parent constructor if it exists
|
||||
if (is_callable(array('parent', 'SimplePie_Absolutize_Test')))
|
||||
{
|
||||
parent::SimplePie_Absolutize_Test();
|
||||
}
|
||||
}
|
||||
|
||||
function init()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c/d;p?q';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/1.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/1.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_1 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g:h';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'g:h';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/10.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/10.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_10 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g#s';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g#s';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/11.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/11.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_11 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g?y#s';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g?y#s';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/12.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/12.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_12 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = ';x';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/;x';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/13.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/13.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_13 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g;x';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g;x';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/14.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/14.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_14 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g;x?y#s';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g;x?y#s';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/15.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/15.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_15 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/d;p?q';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/16.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/16.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_16 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '.';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/17.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/17.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_17 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = './';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/18.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/18.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_18 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '..';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/19.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/19.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_19 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '../';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/2.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/2.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_2 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/20.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/20.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_20 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '../g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/21.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/21.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_21 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '../..';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/22.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/22.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_22 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '../../';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/23.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/23.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_23 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '../../g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/3.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/3.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_3 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = './g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/4.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/4.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_4 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g/';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g/';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/5.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/5.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_5 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '/g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/6.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/6.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_6 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '//g';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://g';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/7.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/7.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_7 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '?y';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/d;p?y';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/8.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/8.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_8 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = 'g?y';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/g?y';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
16
simplepie/test/absolutize/RFC3986.5.4/normal/9.php
Normal file
16
simplepie/test/absolutize/RFC3986.5.4/normal/9.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_RFC3986_Normal_9 extends SimplePie_Absolutize_Test_RFC3986
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['relative'] = '#s';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/d;p?q#s';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/1091.0.1.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/1091.0.1.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_1091_Test_0_1 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://example.com';
|
||||
$this->data['relative'] = '//example.net';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://example.net';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/1091.0.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/1091.0.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_1091_Test_0 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http:g';
|
||||
$this->data['relative'] = 'a';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http:a';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/274.0.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/274.0.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_274_Test_0 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/';
|
||||
$this->data['relative'] = 'c';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/274.1.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/274.1.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_274_Test_1 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/';
|
||||
$this->data['relative'] = 'b';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/274.2.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/274.2.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_274_Test_2 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/';
|
||||
$this->data['relative'] = '/b';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/274.3.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/274.3.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_274_Test_3 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b';
|
||||
$this->data['relative'] = 'c';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/c';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/579.0.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/579.0.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_579_Test_0 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/';
|
||||
$this->data['relative'] = "b\x0Ac";
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/b%0Ac';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.0.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.0.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_0 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c';
|
||||
$this->data['relative'] = 'zero://a/b/c';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'zero://a/b/c';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.1.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.1.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_1 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c';
|
||||
$this->data['relative'] = '//0';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://0';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.2.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.2.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_2 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c';
|
||||
$this->data['relative'] = '0';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/0';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.3.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.3.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_3 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c';
|
||||
$this->data['relative'] = '?0';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c?0';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.4.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.4.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_4 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c';
|
||||
$this->data['relative'] = '#0';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c#0';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.5.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.5.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_5 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'zero://a/b/c';
|
||||
$this->data['relative'] = 'd';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'zero://a/b/d';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.6.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.6.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_6 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://0/b/c';
|
||||
$this->data['relative'] = 'd';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://0/b/d';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.7.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.7.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_7 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c?0';
|
||||
$this->data['relative'] = 'd';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/d';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
17
simplepie/test/absolutize/SPtests/bugs/691.8.php
Normal file
17
simplepie/test/absolutize/SPtests/bugs/691.8.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_691_Test_8 extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c#0';
|
||||
$this->data['relative'] = 'd';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/d';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
class SimplePie_Absolutize_Test_Bug_Pct_Encoding_Invalid_Second_Char extends SimplePie_Absolutize_Test
|
||||
{
|
||||
function data()
|
||||
{
|
||||
$this->data['base'] = 'http://a/b/c/d';
|
||||
$this->data['relative'] = 'f%0o';
|
||||
}
|
||||
|
||||
function expected()
|
||||
{
|
||||
$this->expected = 'http://a/b/c/f%250o';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue