tests
This commit is contained in:
parent
f938e60c2e
commit
03a24c883b
1 changed files with 17 additions and 0 deletions
17
tests/BlogListGeneratorTest.php
Normal file
17
tests/BlogListGeneratorTest.php
Normal 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"));
|
||||||
|
}
|
||||||
|
}
|
Reference in a new issue