Skip to content

Commit 95eaaf9

Browse files
committed
Fix
1 parent 43112a7 commit 95eaaf9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"ext-curl": "*"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "^9.5",
23-
"orchestra/testbench": "^7.0"
22+
"phpunit/phpunit": "^11.0",
23+
"orchestra/testbench": "^10.0"
2424
},
2525
"autoload": {
2626
"psr-4": {

tests/Unit/FeedReaderTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ public function testReadRss()
2828
$rss = FeedReaderFacade::read('http://localhost:8123/rss.xml');
2929

3030
$this->assertEquals('FeedForAll Sample Feed', $rss->get_title());
31-
$this->assertObjectHasAttribute('term', $rss->get_category());
31+
32+
$category = $rss->get_category();
33+
$this->assertNotNull($category, 'Category should not be null');
34+
$this->assertTrue(property_exists($category, 'term'), 'Category object should have "term" property');
35+
3236
$this->assertEquals(9, $rss->get_item_quantity());
3337
// No curl options passed
3438
$this->assertEquals([], $rss->curl_options);

0 commit comments

Comments
 (0)