public function testGetFormatted() { $author = new Author('Git User', '*****@*****.**'); $this->assertSame('Git User <*****@*****.**>', $author->getFormatted()); }
public function commit(Author $author, string $message) { $this->client->run($this->directory, new PlainArgument('commit'), new ShortFlag('m'), new PlainArgument($message), new LongFlag('author'), new PlainArgument($author->getFormatted())); }