AbstractChangeTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 1
cbo 0
dl 0
loc 20
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;
13
14
use PHPUnit_Framework_TestCase;
15
16
class AbstractChangeTest extends PHPUnit_Framework_TestCase
17
{
18
    /** @var Totem\AbstractChange */
19
    private $mock;
20
21
    public function setUp()
22
    {
23
        $this->mock = $this->getMockForAbstractClass('Totem\\AbstractChange', ['old', 'new']);
24
    }
25
26
    public function testOld()
27
    {
28
        $this->assertSame('old', $this->mock->getOld());
29
    }
30
31
    public function testNew()
32
    {
33
        $this->assertSame('new', $this->mock->getNew());
34
    }
35
}
36
37