Passed
Push — master ( 59e1a5...f37dc8 )
by Christopher
05:53
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
lcom 0
cbo 2
dl 0
loc 17
c 0
b 0
f 0
rs 10
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
}
22