name); self::assertEquals('', $author->getEmail()); self::assertEquals(0, $author->getCommitCount()); self::assertEquals(0, $author->getAdditionCount()); self::assertEquals(0, $author->getRemovalCount()); } /** * @testdox The author name and email can be set during initialization and returned * @covers phpOMS\Utils\Git\Author * @group framework */ public function testConstructInputOutput() : void { $author = new Author('test', 'email'); self::assertEquals('test', $author->name); self::assertEquals('email', $author->getEmail()); } /** * @testdox The commit count can be set and returned * @covers phpOMS\Utils\Git\Author * @group framework */ public function testCommitCountInputOutput() : void { $author = new Author('test', 'email'); $author->setCommitCount(1); self::assertEquals(1, $author->getCommitCount()); } /** * @testdox The addition count can be set and returned * @covers phpOMS\Utils\Git\Author * @group framework */ public function testAdditionCountInputOutput() : void { $author = new Author('test', 'email'); $author->setAdditionCount(2); self::assertEquals(2, $author->getAdditionCount()); } /** * @testdox The removal count can be set and returned * @covers phpOMS\Utils\Git\Author * @group framework */ public function testRemovalCountInputOutput() : void { $author = new Author('test', 'email'); $author->setRemovalCount(3); self::assertEquals(3, $author->getRemovalCount()); } }