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

NullMappingTest::shouldNotCollectAnyColumns()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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