Test Failed
Push — master ( 90f1e5...8cd561 )
by Jim
02:25
created

HelpersTest::testValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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 Monolog\Logger;
12
use TimSDK\Foundation\Application;
13
use TimSDK\Tests\TestCase;
14
15
class HelpersTest extends TestCase
16
{
17
    public function testValue()
18
    {
19
        $this->assertEquals('foo', timsdk_value('foo'));
20
        $this->assertEquals('foo', timsdk_value(function () {
21
            return 'foo';
22
        }));
23
    }
24
25
    public function testApp()
26
    {
27
        $this->assertInstanceOf(Application::class, timsdk_app());
28
        $this->assertInstanceOf(Logger::class, timsdk_app('log'));
29
    }
30
}
31