ModificationTest::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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 ModificationTest extends \PHPUnit_Framework_TestCase
15
{
16
    private $change;
17
18
    public function setUp()
19
    {
20
        $this->change = new Modification('old', 'new');
21
    }
22
23
    public function testOld()
24
    {
25
        $this->assertSame('old', $this->change->getOld());
26
    }
27
28
    public function testNew()
29
    {
30
        $this->assertSame('new', $this->change->getNew());
31
    }
32
}
33
34