for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the GitElephant package.
*
* (c) Matteo Giachino <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
* Just for fun...
*/
namespace GitElephant\Objects;
use GitElephant\TestCase;
* AuthorTest
* @author Matteo Giachino <[email protected]>
class AuthorTest extends TestCase
{
* testAuthor
public function testAuthor(): void
$author = new Author();
$author->setEmail('[email protected]');
$author->setName('foo');
$this->assertEquals('[email protected]', $author->getEmail());
$this->assertEquals('foo', $author->getName());
$this->assertEquals('foo <[email protected]>', $author);
}