ATraitsTest::inputEntries()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 6
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php
2
3
namespace TraitsTests;
4
5
6
use CommonTestClass;
7
use kalanis\kw_input\Entries;
8
9
10
abstract class ATraitsTest extends CommonTestClass
11
{
12
    protected function inputEntries(): array
13
    {
14
        return [
15
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_EXTERNAL, 'foo', 'fhdfh'),
16
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_EXTERNAL, 'bar', 'hjyxn'),
17
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_EXTERNAL, 'baz', (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_RAW, 'baz', 'gnbgy')),
18
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_ENV, 'foo', 'mjgdf'),
19
            (new Entries\Entry())->setEntry(Entries\Entry::SOURCE_ENV, 'bar', 'shshh'),
20
        ];
21
    }
22
}
23