Completed
Push — master ( 819155...51529b )
by Alex
04:17
created

MappingTypeTests   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 2
dl 0
loc 17
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testSimpleIdentifierValidWithTrailingSpace() 0 6 1
A testSimpleIdentifierValidWithoutTrailingSpace() 0 7 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\Tests;
4
5
class MappingTypeTests extends TestCase
6
{
7
    public function testSimpleIdentifierValidWithTrailingSpace()
8
    {
9
        $string = "UnitPrice ";
10
        $foo = new mappingTestType();
11
        $this->assertFalse($foo->isTSimpleIdentifierValid($string));
12
    }
13
14
    public function testSimpleIdentifierValidWithoutTrailingSpace()
15
    {
16
        $string = "UnitPrice";
17
18
        $foo = new mappingTestType();
19
        $this->assertTrue($foo->isTSimpleIdentifierValid($string));
20
    }
21
}