StitkyTest::testGetLabels()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 5
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Test\FlexiPeeHP;
4
5
use PHPUnit\Framework\TestCase;
6
7
/**
8
 * Generated by PHPUnit_SkeletonGenerator on 2016-06-10 at 12:31:59.
9
 */
10
class StitkyTest extends TestCase
11
{
12
13
    protected function setUp(): void
14
    {
15
        $this->calculatorTraitMock = $this->getMockForTrait(\FlexiPeeHP\Banka::class);
0 ignored issues
show
Bug Best Practice introduced by
The property calculatorTraitMock does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
16
    }
17
18
    protected function tearDown(): void
19
    {
20
        $this->calculatorTraitMock = null;
0 ignored issues
show
Bug Best Practice introduced by
The property calculatorTraitMock does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
21
    }
22
23
    public function testGetLabels()
24
    {
25
        $this->calculatorTraitMock->setDataValue('stitky', 'LABELA,LABELB');
26
        $this->assertEquals(['LABELA' => 'LABELA', 'LABELB' => 'LABELB'],
27
            $this->calculatorTraitMock->getLabels());
28
    }
29
}
30