| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | class ClassCollectionTest extends AbstractTest |
||
| 15 | { |
||
| 16 | use AbstractTypeTraitTest { |
||
| 17 | newCollection as newCollectionTrait; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @return \Nip\Collections\Typed\AbstractTypedCollection |
||
| 22 | */ |
||
| 23 | protected function newCollection() |
||
| 24 | { |
||
| 25 | $collection = $this->newCollectionTrait(); |
||
| 26 | $collection->validClass(BaseObject::class); |
||
|
|
|||
| 27 | return $collection; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | protected function typeClass() |
||
| 34 | { |
||
| 35 | return ClassCollection::class; |
||
| 36 | } |
||
| 37 | |||
| 38 | protected function typeInvalidValues(): array |
||
| 41 | } |
||
| 42 | |||
| 43 | protected function typeValidValues(): array |
||
| 46 | } |
||
| 47 | } |
||
| 48 |