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

18 lines
424 B
PHP
Raw Normal View History

2016-06-04 09:59:11 +02:00
<?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"));
}
}