list = new CommentList(); } #[\PHPUnit\Framework\Attributes\Group('module')] public function testDefault() : void { self::assertEquals(0, $this->list->id); self::assertEquals([], $this->list->getComments()); } #[\PHPUnit\Framework\Attributes\Group('module')] public function testGetSet() : void { $comment = new Comment(); $comment->title = 'Test Title'; $comment->contentRaw = 'TestRaw'; $comment->content = 'Test Content'; $this->list->addComment($comment); self::assertEquals('Test Title', $this->list->getComments()[0]->title); self::assertEquals('TestRaw', $this->list->getComments()[0]->contentRaw); self::assertEquals('Test Content', $this->list->getComments()[0]->content); } }