AttributeParseTest::copyModelInstance()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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