Skip to content

Commit 091bd95

Browse files
committed
Fixed PHPUnits tests
- included isPermaLink test - removed unused variables - cleaned code
1 parent d9e750b commit 091bd95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Suin/RSSWriter/ItemTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
namespace Suin\RSSWriter;
44

5-
class ItemTest extends \XoopsUnit\TestCase
5+
use XoopsUnit\TestCase;
6+
7+
class ItemTest extends TestCase
68
{
79
private $channelInterface = '\Suin\RSSWriter\ChannelInterface';
810

@@ -141,7 +143,7 @@ public function testAsXML()
141143
<description>{$data['description']}</description>
142144
<category>{$data['categories'][0][0]}</category>
143145
<category domain=\"{$data['categories'][1][1]}\">{$data['categories'][1][0]}</category>
144-
<guid>{$data['guid']}</guid>
146+
<guid isPermaLink=\"true\">{$data['guid']}</guid>
145147
<pubDate>{$nowString}</pubDate>
146148
<enclosure url=\"{$data['enclosure']['url']}\" type=\"{$data['enclosure']['type']}\" length=\"{$data['enclosure']['length']}\"/>
147149
<author>{$data['author']}</author>
@@ -152,8 +154,6 @@ public function testAsXML()
152154

153155
public function testAsXML_test_Japanese()
154156
{
155-
$now = time();
156-
157157
$data = array(
158158
'title' => "Venice Film Festival",
159159
'url' => 'http://nytimes.com/2004/12/07FEST.html',

0 commit comments

Comments
 (0)