From 03a24c883be3c422b6dc739aa84cf1e31c9eb025 Mon Sep 17 00:00:00 2001 From: "Marcel Kapfer (mmk2410)" Date: Sat, 4 Jun 2016 09:59:11 +0200 Subject: [PATCH] tests --- tests/BlogListGeneratorTest.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/BlogListGeneratorTest.php diff --git a/tests/BlogListGeneratorTest.php b/tests/BlogListGeneratorTest.php new file mode 100644 index 0000000..6c883a2 --- /dev/null +++ b/tests/BlogListGeneratorTest.php @@ -0,0 +1,17 @@ +assertEquals("Example", BlogListGenerator::getName("blogs/example.md")); + } + + public function testGetArticleAmount() + { + $this->assertEquals(5, BlogListGenerator::getArticleAmount("example")); + } +}