AttributeParseTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A copyModelInstance() 0 6 1
1
<?php
2
3
namespace Tests\Type;
4
5
class AttributeParseTest extends AttributeCreateTest
6
{
7
    protected function setUp(): void
8
    {
9
        parent::parseModel("AnimalTest");
10
        $this->copyModelInstance();
11
    }
12
13
    private function copyModelInstance(): void
14
    {
15
        $this->tweety = $this->modelInstance->getModelElementById("tweety");
16
        $this->idAttribute = $this->tweety->getElementType()->getAttribute("id");
17
        $this->nameAttribute = $this->tweety->getElementType()->getAttribute("name");
18
        $this->fatherAttribute = $this->tweety->getElementType()->getAttribute("father");
19
    }
20
}
21