This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
rangitaki/tests/BlogListGeneratorTest.php
2016-12-29 21:54:37 +01:00

19 lines
504 B
PHP

<?php
require_once 'PHPUnit/Autoload.php';
require_once 'res/php/BlogListGenerator.php';
use mmk2410\rbe\BlogListGenerator\BlogListGenerator as BlogListGenerator;
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"));
}
}