aboutsummaryrefslogtreecommitdiffstats
path: root/simplepie/test/first_item_title/SPtests/bugs/968.0.php
diff options
context:
space:
mode:
Diffstat (limited to 'simplepie/test/first_item_title/SPtests/bugs/968.0.php')
-rw-r--r--simplepie/test/first_item_title/SPtests/bugs/968.0.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/simplepie/test/first_item_title/SPtests/bugs/968.0.php b/simplepie/test/first_item_title/SPtests/bugs/968.0.php
new file mode 100644
index 000000000..6bed207a7
--- /dev/null
+++ b/simplepie/test/first_item_title/SPtests/bugs/968.0.php
@@ -0,0 +1,22 @@
+<?php
+
+class SimplePie_First_Item_Title_Test_Bug_968_Test_0 extends SimplePie_First_Item_Title_Test
+{
+ function data()
+ {
+ $this->data = "\xFF\xFE" . chunk_split(
+'<?xml version="1.0" encoding="UTF-16LE"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
+ <entry>
+ <title>Item Title</title>
+ </entry>
+</feed>', 1, "\x00");
+ }
+
+ function expected()
+ {
+ $this->expected = 'Item Title';
+ }
+}
+
+?> \ No newline at end of file