Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit0f90fea

Browse files
committed
Merge branch 'hotfix/63'
Close#63
2 parents6fcdce9 +cab9c4b commit0f90fea

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ All notable changes to this project will be documented in this file, in reverse
1313
additional aliases to the`Writer\ExtensionPluginManager` to ensure plugins
1414
will be pulled as expected.
1515

16+
-[#63](https://github.com/zendframework/zend-feed/pull/63) adds the feed title
17+
to the attributes incorporated in the`FeedSet` instance, per what was already
18+
documented.
19+
1620
###Changed
1721

1822
- Nothing.

‎src/Reader/FeedSet.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function addLinks(DOMNodeList $links, $uri)
5555
'rel' =>'alternate',
5656
'type' =>$link->getAttribute('type'),
5757
'href' =>$this->absolutiseUri(trim($link->getAttribute('href')),$uri),
58+
'title' =>$link->getAttribute('title'),
5859
]);
5960
}
6061
}

‎test/Reader/ReaderTest.php‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ public function testCompilesLinksAsArrayObject()
202202
$links =Reader\Reader::findFeedLinks('http://www.planet-php.net');
203203
$this->assertInstanceOf(FeedSet::class,$links);
204204
$this->assertEquals([
205-
'rel' =>'alternate','type' =>'application/rss+xml','href' =>'http://www.planet-php.org/rss/'
205+
'rel' =>'alternate',
206+
'type' =>'application/rss+xml',
207+
'href' =>'http://www.planet-php.org/rss/',
208+
'title' =>'RSS'
206209
], (array)$links->getIterator()->current());
207210
}
208211

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp