Completed
Push — master ( 70b664...2ea580 )
by Ryuichi
01:57
created

InjectorTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 2
dl 0
loc 14
rs 10
c 0
b 0
f 0
1
<?php
2
namespace WebStream\DI\Test;
3
4
require_once dirname(__FILE__) . '/Fixtures/Injected.php';
5
6
/**
7
 * InjectorTest
8
 * @author Ryuichi TANAKA.
9
 * @since 2016/09/11
10
 * @version 0.7
11
 */
12
class InjectorTest extends \PHPUnit_Framework_TestCase
13
{
14
    /**
15
     * 正常系
16
     * ファイル名を取得できること
17
     * @test
18
     */
19
    public function okFileName()
20
    {
21
        $object = new Injected();
22
        $object->inject('key', 'value');
23
        $this->assertEquals($object->getValue("key"), "value");
24
    }
25
}
26