Skip to content

Commit

Permalink
Update FeedsTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
VerifiedJoseph committed Mar 28, 2024
1 parent 3b15525 commit 4441f20
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions tests/FeedsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@

class FeedsTest extends TestCase
{
public static function setUpBeforeClass(): void
{
Output::quiet();
}

/**
* Test get()
*/
public function testGet(): void
{
$this->expectOutputRegex('/Loading feeds.yaml/');

/** @var PHPUnit\Framework\MockObject\Stub&Config */
$config = $this->createStub(Config::class);
$config->method('getFeedsPath')->willReturn(self::getSamplePath('feeds.yaml'));
Expand All @@ -38,12 +35,8 @@ public function testNoFeedsException(): void

$this->expectException(AppException::class);
$this->expectExceptionMessage('No feeds in feeds.yaml');
$this->expectOutputRegex('/Loading feeds.yaml/');

new Feeds($config);
}

public static function tearDownAfterClass(): void
{
Output::disableQuiet();
}
}

0 comments on commit 4441f20

Please sign in to comment.