name); self::assertEquals('', $author->getEmail()); self::assertEquals(0, $author->getCommitCount()); self::assertEquals(0, $author->getAdditionCount()); self::assertEquals(0, $author->getRemovalCount()); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('The author name and email can be set during initialization and returned')] public function testConstructInputOutput() : void { $author = new Author('test', 'email'); self::assertEquals('test', $author->name); self::assertEquals('email', $author->getEmail()); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('The commit count can be set and returned')] public function testCommitCountInputOutput() : void { $author = new Author('test', 'email'); $author->setCommitCount(1); self::assertEquals(1, $author->getCommitCount()); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('The addition count can be set and returned')] public function testAdditionCountInputOutput() : void { $author = new Author('test', 'email'); $author->setAdditionCount(2); self::assertEquals(2, $author->getAdditionCount()); } #[\PHPUnit\Framework\Attributes\Group('framework')] #[\PHPUnit\Framework\Attributes\TestDox('The removal count can be set and returned')] public function testRemovalCountInputOutput() : void { $author = new Author('test', 'email'); $author->setRemovalCount(3); self::assertEquals(3, $author->getRemovalCount()); } }