assertEquals("Example", BlogListGenerator::listBlog("./blogs/", "example.md", "Example Blog") ); $this->assertEquals("Docs", BlogListGenerator::listBlog("./blogs/", "external.md", "Example Blog") ); } public function testGetName() { $this->assertEquals("Example", BlogListGenerator::getName("blogs/example.md")); } public function testGetArticleAmount() { $this->assertEquals(5, BlogListGenerator::getArticleAmount("example")); } public function testGetExternaleLink() { $this->assertEquals(null, BlogListGenerator::getExternalLink("example.md", '.') ); $this->assertEquals("https://mmk2410.org/rangitaki/docs/", BlogListGenerator::getExternalLink("external.md", '.') ); } }