Completed
Push — master ( cfe17f...b2cc83 )
by Sam
02:44
created

CorsServiceProviderTest::setup()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Nord\Lumen\Cors\Tests;
4
5
use Nord\Lumen\Cors\CorsService;
6
use Nord\Lumen\Cors\CorsServiceProvider;
7
8
class CorsServiceProviderTest extends \Codeception\Test\Unit
9
{
10
    use \Codeception\Specify;
11
12
    /**
13
     * @var MockApplication
14
     */
15
    protected $app;
16
17
    /**
18
     * @inheritdoc
19
     */
20
    protected function setup()
21
    {
22
        $this->app = new MockApplication();
23
        $this->app->register(CorsServiceProvider::class);
24
    }
25
26
    /**
27
     *
28
     */
29
    public function testAssertCanBeRegistered()
30
    {
31
        $this->specify('verify serviceProvider is registered', function () {
32
            $service = $this->app->make(CorsService::class);
33
            verify($service)->isInstanceOf(CorsService::class);
34
        });
35
    }
36
}
37