You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
379 B
16 lines
379 B
<?php
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use classes\Chapter;
|
|
|
|
final class testChapter extends TestCase
|
|
{
|
|
public function testInstanciation()
|
|
{
|
|
$chapter = new Chapter(1, "chapter 1");
|
|
$this->assertInstanceOf(Chapter::class, $chapter);
|
|
$this->assertEquals(1, $chapter->getId());
|
|
$this->assertEquals("chapter 1", $chapter->getName());
|
|
}
|
|
}
|