IntCollectionTest::typeInvalidValues()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Nip\Collections\Tests\Typed;
4
5
use Nip\Collections\Tests\AbstractTest;
6
use Nip\Collections\Typed\IntCollection;
7
8
/**
9
 * Class IntCollectionTest
10
 * @package Nip\Collections\Tests\Typed
11
 */
12
class IntCollectionTest extends AbstractTest
13
{
14
    use AbstractTypeTraitTest;
15
16
    /**
17
     * @return string
18
     */
19
    protected function typeClass()
20
    {
21
        return IntCollection::class;
22
    }
23
24
    protected function typeInvalidValues(): array
25
    {
26
        return ['10', 10.00];
27
    }
28
29
    protected function typeValidValues(): array
30
    {
31
        return [10];
32
    }
33
}
34