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

testTQualifiedNameFromKnownDocumentWithTrailingSpace()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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