DataSourceSetTests   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 4
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A randomCollection() 0 4 1
A emptyCollection() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Cubiche package.
4
 *
5
 * Copyright (c) Cubiche
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
namespace Cubiche\Core\Collections\Tests\Units;
11
12
use Cubiche\Core\Collections\DataSource\ArrayDataSource;
13
use Cubiche\Core\Collections\DataSourceSet;
14
15
/**
16
 * DataSourceSetTests class.
17
 *
18
 * @author Ivannis Suárez Jerez <[email protected]>
19
 * @author Karel Osorio Ramírez <[email protected]>
20
 */
21
class DataSourceSetTests extends SetTestCase
22
{
23
    use DataSourceCollectionTestCase;
24
25
    /**
26
     * {@inheritdoc}
27
     */
28
    protected function randomCollection($size = null)
29
    {
30
        return new DataSourceSet(new ArrayDataSource($this->randomValues($size)));
31
    }
32
33
    /**
34
     * {@inheritdoc}
35
     */
36
    protected function emptyCollection()
37
    {
38
        return new DataSourceSet(new ArrayDataSource([]));
39
    }
40
}
41