diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-05 03:34:42 -0700 |
commit | 9f7ae0e95f89b964a098eaacdfd89ff25e05c615 (patch) | |
tree | 0bfe8d04f4b11abdbea41fe9bf6e165eec8ebc4b /simplepie/test/absolutize/RFC3986.5.4 | |
parent | f5826105bfc514599b2c5b6692bca14ca4bc5d78 (diff) | |
download | volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.gz volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.tar.bz2 volse-hubzilla-9f7ae0e95f89b964a098eaacdfd89ff25e05c615.zip |
Add simplepie
Diffstat (limited to 'simplepie/test/absolutize/RFC3986.5.4')
44 files changed, 698 insertions, 0 deletions
diff --git a/simplepie/test/absolutize/RFC3986.5.4/README b/simplepie/test/absolutize/RFC3986.5.4/README new file mode 100644 index 000000000..385dc74f8 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/README @@ -0,0 +1 @@ +The tests enclosed within come from RFC 3986 section 5.4 and all share the same base URL
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/1.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/1.php new file mode 100644 index 000000000..f55e62d8b --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/1.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/10.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/10.php new file mode 100644 index 000000000..668cda63c --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/10.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/11.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/11.php new file mode 100644 index 000000000..eda10a60b --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/11.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/12.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/12.php new file mode 100644 index 000000000..b66d71f60 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/12.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/13.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/13.php new file mode 100644 index 000000000..06b5e326c --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/13.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/14.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/14.php new file mode 100644 index 000000000..4a40af5ad --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/14.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/15.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/15.php new file mode 100644 index 000000000..bef790e70 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/15.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/16.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/16.php new file mode 100644 index 000000000..932cda4b5 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/16.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/17.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/17.php new file mode 100644 index 000000000..8d626b68f --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/17.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/18.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/18.php new file mode 100644 index 000000000..7a53018cf --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/18.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/19.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/19.php new file mode 100644 index 000000000..289c1abc2 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/19.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/2.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/2.php new file mode 100644 index 000000000..9a0534554 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/2.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/3.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/3.php new file mode 100644 index 000000000..f96f5468f --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/3.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/4.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/4.php new file mode 100644 index 000000000..64e359fe6 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/4.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/5.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/5.php new file mode 100644 index 000000000..dfd8e42be --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/5.php @@ -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.'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/6.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/6.php new file mode 100644 index 000000000..3125b0044 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/6.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/7.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/7.php new file mode 100644 index 000000000..82f97b0ce --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/7.php @@ -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..'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/8.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/8.php new file mode 100644 index 000000000..836ede076 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/8.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/abnormal/9.php b/simplepie/test/absolutize/RFC3986.5.4/abnormal/9.php new file mode 100644 index 000000000..4917d4ceb --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/abnormal/9.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/base.php b/simplepie/test/absolutize/RFC3986.5.4/base.php new file mode 100644 index 000000000..913aeec9d --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/base.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/1.php b/simplepie/test/absolutize/RFC3986.5.4/normal/1.php new file mode 100644 index 000000000..0550ff030 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/1.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/10.php b/simplepie/test/absolutize/RFC3986.5.4/normal/10.php new file mode 100644 index 000000000..86eab935c --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/10.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/11.php b/simplepie/test/absolutize/RFC3986.5.4/normal/11.php new file mode 100644 index 000000000..caa262bff --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/11.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/12.php b/simplepie/test/absolutize/RFC3986.5.4/normal/12.php new file mode 100644 index 000000000..8425386a4 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/12.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/13.php b/simplepie/test/absolutize/RFC3986.5.4/normal/13.php new file mode 100644 index 000000000..8fc624930 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/13.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/14.php b/simplepie/test/absolutize/RFC3986.5.4/normal/14.php new file mode 100644 index 000000000..bef64c3c2 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/14.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/15.php b/simplepie/test/absolutize/RFC3986.5.4/normal/15.php new file mode 100644 index 000000000..d3af1a4e5 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/15.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/16.php b/simplepie/test/absolutize/RFC3986.5.4/normal/16.php new file mode 100644 index 000000000..d511971e1 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/16.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/17.php b/simplepie/test/absolutize/RFC3986.5.4/normal/17.php new file mode 100644 index 000000000..0c4581bcc --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/17.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/18.php b/simplepie/test/absolutize/RFC3986.5.4/normal/18.php new file mode 100644 index 000000000..8e25cc5d0 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/18.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/19.php b/simplepie/test/absolutize/RFC3986.5.4/normal/19.php new file mode 100644 index 000000000..53cd164d7 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/19.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/2.php b/simplepie/test/absolutize/RFC3986.5.4/normal/2.php new file mode 100644 index 000000000..c98f815e0 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/2.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/20.php b/simplepie/test/absolutize/RFC3986.5.4/normal/20.php new file mode 100644 index 000000000..3a3348ad3 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/20.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/21.php b/simplepie/test/absolutize/RFC3986.5.4/normal/21.php new file mode 100644 index 000000000..e6bd90001 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/21.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/22.php b/simplepie/test/absolutize/RFC3986.5.4/normal/22.php new file mode 100644 index 000000000..0a6cf9732 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/22.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/23.php b/simplepie/test/absolutize/RFC3986.5.4/normal/23.php new file mode 100644 index 000000000..fcd90f01e --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/23.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/3.php b/simplepie/test/absolutize/RFC3986.5.4/normal/3.php new file mode 100644 index 000000000..d5401736c --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/3.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/4.php b/simplepie/test/absolutize/RFC3986.5.4/normal/4.php new file mode 100644 index 000000000..9eff412aa --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/4.php @@ -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/'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/5.php b/simplepie/test/absolutize/RFC3986.5.4/normal/5.php new file mode 100644 index 000000000..82681cb64 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/5.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/6.php b/simplepie/test/absolutize/RFC3986.5.4/normal/6.php new file mode 100644 index 000000000..5aaef804b --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/6.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/7.php b/simplepie/test/absolutize/RFC3986.5.4/normal/7.php new file mode 100644 index 000000000..e97ecd372 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/7.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/8.php b/simplepie/test/absolutize/RFC3986.5.4/normal/8.php new file mode 100644 index 000000000..0ac6fe46c --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/8.php @@ -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'; + } +} + +?>
\ No newline at end of file diff --git a/simplepie/test/absolutize/RFC3986.5.4/normal/9.php b/simplepie/test/absolutize/RFC3986.5.4/normal/9.php new file mode 100644 index 000000000..d790df845 --- /dev/null +++ b/simplepie/test/absolutize/RFC3986.5.4/normal/9.php @@ -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'; + } +} + +?>
\ No newline at end of file |