Passed
Push — master ( 356755...14835f )
by Gerrit
04:25
created

NullMappingTest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A shouldDescribeOrigin() 0 4 1
A shouldNotCollectAnyColumns() 0 4 1
1
<?php
2
/**
3
 * Copyright (C) 2017  Gerrit Addiks.
4
 * This package (including this file) was released under the terms of the GPL-3.0.
5
 * You should have received a copy of the GNU General Public License along with this program.
6
 * If not, see <http://www.gnu.org/licenses/> or send me a mail so i can send you a copy.
7
 * @license GPL-3.0
8
 * @author Gerrit Addiks <[email protected]>
9
 */
10
11
namespace Addiks;
12
13
use PHPUnit\Framework\TestCase;
14
use Addiks\RDMBundle\Mapping\NullMapping;
15
16
final class NullMappingTest extends TestCase
17
{
18
19
    /**
20
     * @var NullMapping
21
     */
22
    private $mapping;
23
24
    public function setUp()
25
    {
26
        $this->mapping = new NullMapping("some origin");
27
    }
28
29
    /**
30
     * @test
31
     */
32
    public function shouldDescribeOrigin()
33
    {
34
        $this->assertEquals("some origin", $this->mapping->describeOrigin());
35
    }
36
37
    /**
38
     * @test
39
     */
40
    public function shouldNotCollectAnyColumns()
41
    {
42
        $this->assertEmpty($this->mapping->collectDBALColumns());
43
    }
44
45
}
46