Passed
Push — master ( 317eb4...7e3691 )
by Alex
04:52
created

TValueAnnotationsTypeTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testTQualifiedNameFromKnownDocument() 0 6 1
A testTQualifiedNameFromKnownDocumentWithTrailingSpace() 0 6 1
1
<?php
2
3
namespace AlgoWeb\ODataMetadata\Tests;
4
5
use AlgoWeb\ODataMetadata\MetadataV3\edm\TValueAnnotationType;
6
7
class TValueAnnotationsTypeTest extends TestCase
8
{
9
    public function testTQualifiedNameFromKnownDocument()
10
    {
11
        $foo = new TValueAnnotationType();
12
        $name = "Org.OData.Publication.V1.DocumentationUrl";
13
        $this->assertTrue($foo->isTQualifiedNameValid($name));
14
    }
15
16
    public function testTQualifiedNameFromKnownDocumentWithTrailingSpace()
17
    {
18
        $foo = new TValueAnnotationType();
19
        $name = "Org.OData.Publication.V1.DocumentationUrl ";
20
        $this->assertFalse($foo->isTQualifiedNameValid($name));
21
    }
22
}
23