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

testSimpleIdentifierValidWithoutTrailingSpace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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