Completed
Pull Request — master (#19)
by
unknown
08:27
created

HelperTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 13
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A test_helper_exists() 0 4 1
A test_helper_returns_correct_instance() 0 5 1
1
<?php
2
3
namespace Tzsk\Sms\Tests;
4
5
class HelperTest extends TestCase
0 ignored issues
show
Bug introduced by
There is at least one abstract method in this class. Maybe declare it as abstract, or implement the remaining methods: artisan, be, call, seed
Loading history...
6
{
7
    public function test_helper_exists()
8
    {
9
        $this->assertTrue(function_exists('sms'));
10
    }
11
12
    public function test_helper_returns_correct_instance()
13
    {
14
        $sms = app('tzsk-sms');
15
        $this->assertTrue(sms() instanceof $sms);
16
    }
17
}
18