Completed
Push — master ( 3a7482...36f3d7 )
by Jim
08:32
created

HelpersTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 14
c 0
b 0
f 0
rs 10
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: lenovo
5
 * Date: 6/14/2018
6
 * Time: 1:04 AM
7
 */
8
9
namespace TimSDK\Tests\Support;
10
11
use TimSDK\Container\ServiceContainer;
12
use TimSDK\Foundation\Application;
13
use TimSDK\Support\Collection;
14
use TimSDK\Tests\TestCase;
15
16
class HelpersTest extends TestCase
17
{
18
    public function testValue()
19
    {
20
        $this->assertEquals('foo', timsdk_value('foo'));
21
        $this->assertEquals('foo', timsdk_value(function () {
22
            return 'foo';
23
        }));
24
    }
25
26
    public function testApp()
27
    {
28
        $this->assertInstanceOf(ServiceContainer::class, timsdk_app());
29
        $this->assertInstanceOf(Collection::class, timsdk_app('config'));
30
    }
31
}
32