| Total Complexity | 2 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 32 |