From 58ce95a255c04e1b6ecac0d794bc4dbeb23871de Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Sun, 16 Jan 2022 17:01:53 +0100 Subject: Add test coverage, add tests, refactor OPML code --- tests/PlanetConfigTest.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/PlanetConfigTest.php') diff --git a/tests/PlanetConfigTest.php b/tests/PlanetConfigTest.php index 4db6e90..ddf7373 100644 --- a/tests/PlanetConfigTest.php +++ b/tests/PlanetConfigTest.php @@ -70,4 +70,11 @@ class PlanetConfigTest extends TestCase $conf = new PlanetConfig(['foo' => 'bar'], false); $this->assertEquals("---\nfoo: bar\n", $conf->toYaml()); } + + public function testConfigLoad() + { + $conf = PlanetConfig::load("."); + $default = new PlanetConfig(); + $this->assertEquals($default, $conf); + } } -- cgit v1.2.1