Skip to content
Newer
Older
100644 23 lines (18 sloc) 640 Bytes
5536d79 Added stripping of xml:base attribute from returned XHTML content
James Stewart authored Oct 15, 2005
1 <?php
2
ec4f5ae Fixed paths for getting sample data
James Stewart authored Jul 27, 2006
3 require_once 'XML_Feed_Parser_TestCase.php';
5536d79 Added stripping of xml:base attribute from returned XHTML content
James Stewart authored Oct 15, 2005
4
fedac81 Add test cases for currently open bugs
James Stewart authored Mar 8, 2008
5 class farsi extends XML_Feed_Parser_TestCase
5536d79 Added stripping of xml:base attribute from returned XHTML content
James Stewart authored Oct 15, 2005
6 {
fedac81 Add test cases for currently open bugs
James Stewart authored Mar 8, 2008
7 function setUp()
5536d79 Added stripping of xml:base attribute from returned XHTML content
James Stewart authored Oct 15, 2005
8 {
ec4f5ae Fixed paths for getting sample data
James Stewart authored Jul 27, 2006
9 $sample_dir = XML_Feed_Parser_TestCase::getSampleDir();
10 $this->file = file_get_contents($sample_dir . DIRECTORY_SEPARATOR . 'hoder.xml');
5536d79 Added stripping of xml:base attribute from returned XHTML content
James Stewart authored Oct 15, 2005
11 $this->feed = new XML_Feed_Parser($this->file);
12 $this->entry = $this->feed->getEntryByOffset(0);
13 }
14
15 function test_itemTitleFarsi()
16 {
ec4f5ae Fixed paths for getting sample data
James Stewart authored Jul 27, 2006
17 $value = 'لينکدونی‌ | جلسه‌ی امریکن انترپرایز برای تقسیم قومی ایران';
5536d79 Added stripping of xml:base attribute from returned XHTML content
James Stewart authored Oct 15, 2005
18 $this->assertEquals($value, $this->entry->title);
19 }
20 }
21
22
23 ?>
Something went wrong with that request. Please try again.