summaryrefslogtreecommitdiffstats
path: root/tests/PlanetConfigTest.php
diff options
context:
space:
mode:
authorRomain d'Alverny <rdalverny@gmail.com>2022-01-16 17:01:53 +0100
committerRomain d'Alverny <rdalverny@gmail.com>2022-01-16 17:01:53 +0100
commit58ce95a255c04e1b6ecac0d794bc4dbeb23871de (patch)
tree4205d2da15a4e92dfb8ad59a112ef3d2e1c2c143 /tests/PlanetConfigTest.php
parent9d3f003ba2ab29ef6a790535cc586ca20d555d15 (diff)
downloadplanet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar
planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar.gz
planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar.bz2
planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.tar.xz
planet-58ce95a255c04e1b6ecac0d794bc4dbeb23871de.zip
Add test coverage, add tests, refactor OPML code
Diffstat (limited to 'tests/PlanetConfigTest.php')
-rw-r--r--tests/PlanetConfigTest.php7
1 files changed, 7 insertions, 0 deletions
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);
+ }
}