aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/absolutize/SPtests
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/absolutize/SPtests')
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/1091.0.1.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/1091.0.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/274.0.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/274.1.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/274.2.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/274.3.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/579.0.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.0.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.1.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.2.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.3.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.4.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.5.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.6.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.7.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/691.8.php17
-rw-r--r--simplepie/test/absolutize/SPtests/bugs/pct_encoding_invalid_second_char.php17
17 files changed, 289 insertions, 0 deletions
diff --git a/simplepie/test/absolutize/SPtests/bugs/1091.0.1.php b/simplepie/test/absolutize/SPtests/bugs/1091.0.1.php
new file mode 100644
index 000000000..5c781eeea
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/1091.0.1.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/1091.0.php b/simplepie/test/absolutize/SPtests/bugs/1091.0.php
new file mode 100644
index 000000000..a81eb060d
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/1091.0.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/274.0.php b/simplepie/test/absolutize/SPtests/bugs/274.0.php
new file mode 100644
index 000000000..95bf7897c
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/274.0.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/274.1.php b/simplepie/test/absolutize/SPtests/bugs/274.1.php
new file mode 100644
index 000000000..409b3feab
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/274.1.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/274.2.php b/simplepie/test/absolutize/SPtests/bugs/274.2.php
new file mode 100644
index 000000000..c3b159e98
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/274.2.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/274.3.php b/simplepie/test/absolutize/SPtests/bugs/274.3.php
new file mode 100644
index 000000000..4b268e44f
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/274.3.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/579.0.php b/simplepie/test/absolutize/SPtests/bugs/579.0.php
new file mode 100644
index 000000000..b899d973f
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/579.0.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.0.php b/simplepie/test/absolutize/SPtests/bugs/691.0.php
new file mode 100644
index 000000000..1c268e65e
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.0.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.1.php b/simplepie/test/absolutize/SPtests/bugs/691.1.php
new file mode 100644
index 000000000..af7d04194
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.1.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.2.php b/simplepie/test/absolutize/SPtests/bugs/691.2.php
new file mode 100644
index 000000000..c3ce0855d
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.2.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.3.php b/simplepie/test/absolutize/SPtests/bugs/691.3.php
new file mode 100644
index 000000000..2bfd95a1d
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.3.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.4.php b/simplepie/test/absolutize/SPtests/bugs/691.4.php
new file mode 100644
index 000000000..9c82198c6
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.4.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.5.php b/simplepie/test/absolutize/SPtests/bugs/691.5.php
new file mode 100644
index 000000000..10a93b95b
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.5.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.6.php b/simplepie/test/absolutize/SPtests/bugs/691.6.php
new file mode 100644
index 000000000..6a9ef397f
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.6.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.7.php b/simplepie/test/absolutize/SPtests/bugs/691.7.php
new file mode 100644
index 000000000..ab51d7499
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.7.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/691.8.php b/simplepie/test/absolutize/SPtests/bugs/691.8.php
new file mode 100644
index 000000000..4c1ee0eb8
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/691.8.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file
diff --git a/simplepie/test/absolutize/SPtests/bugs/pct_encoding_invalid_second_char.php b/simplepie/test/absolutize/SPtests/bugs/pct_encoding_invalid_second_char.php
new file mode 100644
index 000000000..75dc2bb10
--- /dev/null
+++ b/simplepie/test/absolutize/SPtests/bugs/pct_encoding_invalid_second_char.php
@@ -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';
+ }
+}
+
+?> \ No newline at end of file