This commit is contained in:
Marcel Kapfer (mmk2410) 2016-06-04 09:59:11 +02:00
parent f938e60c2e
commit 03a24c883b

View file

@ -0,0 +1,17 @@
<?php
require_once 'PHPUnit/Autoload.php';
include 'res/php/BlogListGenerator.php';
class BlogListGeneratorTest extends \PHPUnit_Framework_TestCase
{
public function testGetName()
{
$this->assertEquals("Example", BlogListGenerator::getName("blogs/example.md"));
}
public function testGetArticleAmount()
{
$this->assertEquals(5, BlogListGenerator::getArticleAmount("example"));
}
}