AdditionTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 3
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 19
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testOld() 0 4 1
A testNew() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Totem package
4
 *
5
 * For the full copyright and license information, please view the LICENSE file
6
 * that was distributed with this source code.
7
 *
8
 * @copyright Baptiste Clavié <[email protected]>
9
 * @license   http://www.opensource.org/licenses/MIT-License MIT License
10
 */
11
12
namespace Totem\Change;
13
14
class AdditionTest extends \PHPUnit_Framework_TestCase
15
{
16
    private $change;
17
18
    public function setUp()
19
    {
20
        $this->change = new Addition('new');
21
    }
22
23
    public function testOld()
24
    {
25
        $this->assertNull($this->change->getOld());
26
    }
27
28
    public function testNew()
29
    {
30
        $this->assertSame('new', $this->change->getNew());
31
    }
32
}
33
34