Completed
Push — master ( 2e5bdd...9e2471 )
by Ryuichi
05:26
created

ContainerProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
cbo 0
dl 0
loc 29
ccs 0
cts 22
cp 0
rs 10
c 0
b 0
f 0
lcom 0
1
<?php
2
namespace WebStream\Container\Test\Providers;
3
4
/**
5
 * ContainerProvider
6
 * @author Ryuichi TANAKA.
7
 * @since 2016/08/20
8
 * @version 0.7
9
 */
10
trait ContainerProvider
11
{
12
    public function valueLazyProvider()
13
    {
14
        $func = function() {
15
            return "test";
16
        };
17
18
        return [
19
            ["test", "test"],
20
            [123, 123],
21
            [true, true],
22
            [$func, "test"]
23
        ];
24
    }
25
26
    public function valueDynamicProvider()
27
    {
28
        $func = function() {
29
            return "test";
30
        };
31
32
        return [
33
            ["test", "test"],
34
            [123, 123],
35
            [true, true]
36
        ];
37
    }
38
}
39