Completed
Branch feature/0.7.0 (0808a6)
by Ryuichi
85:55 queued 40:54
created

ContainerProvider::valueLazyProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13
Code Lines 8

Duplication

Lines 13
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 8
nc 1
nop 0
dl 13
loc 13
rs 9.4285
c 0
b 0
f 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