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

20 lines
504 B
PHP
Raw Normal View History

2016-06-04 09:59:11 +02:00
<?php
require_once 'PHPUnit/Autoload.php';
2016-12-29 21:54:37 +01:00
require_once 'res/php/BlogListGenerator.php';
use mmk2410\rbe\BlogListGenerator\BlogListGenerator as BlogListGenerator;
2016-06-04 09:59:11 +02:00
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"));
}
}