vote = new CommentVote(); } #[\PHPUnit\Framework\Attributes\Group('module')] public function testDefault() : void { self::assertEquals(0, $this->vote->id); self::assertEquals(0, $this->vote->score); self::assertEquals(0, $this->vote->comment); self::assertEquals(0, $this->vote->createdBy); self::assertInstanceOf('\DateTimeImmutable', $this->vote->createdAt); } #[\PHPUnit\Framework\Attributes\Group('module')] public function testScoreInputOutput() : void { $this->vote->score = 1; self::assertEquals(1, $this->vote->score); } #[\PHPUnit\Framework\Attributes\Group('module')] public function testCommentInputOutput() : void { $this->vote->comment = 1; self::assertEquals(1, $this->vote->comment); } }