AuthorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A testAuthor() 0 9 1
1
<?php
2
3
/**
4
 * This file is part of the GitElephant package.
5
 *
6
 * (c) Matteo Giachino <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * Just for fun...
12
 */
13
14
namespace GitElephant\Objects;
15
16
use GitElephant\TestCase;
17
18
/**
19
 * AuthorTest
20
 *
21
 * @author Matteo Giachino <[email protected]>
22
 */
23
24
class AuthorTest extends TestCase
25
{
26
    /**
27
     * testAuthor
28
     */
29
    public function testAuthor(): void
30
    {
31
        $author = new Author();
32
        $author->setEmail('[email protected]');
33
        $author->setName('foo');
34
        $this->assertEquals('[email protected]', $author->getEmail());
35
        $this->assertEquals('foo', $author->getName());
36
        $this->assertEquals('foo <[email protected]>', $author);
37
    }
38
}
39