Example #1
0
 public function testGetFormatted()
 {
     $author = new Author('Git User', '*****@*****.**');
     $this->assertSame('Git User <*****@*****.**>', $author->getFormatted());
 }
Example #2
0
 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()));
 }