Passed
Branch master (e8fd46)
by Alexey
03:15
created

HttpApplicationSpec   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A let() 0 5 1
A it_is_initializable() 0 4 1
1
<?php
2
3
namespace spec\Venta\Framework\Http;
4
5
use PhpSpec\ObjectBehavior;
6
use Venta\Contracts\Container\Container;
7
use Venta\Contracts\Kernel\Kernel;
8
use Venta\Framework\Http\HttpApplication;
9
10
class HttpApplicationSpec extends ObjectBehavior
11
{
12
    function let(Kernel $kernel, Container $container)
13
    {
14
        $kernel->boot()->willReturn($container);
15
        $this->beConstructedWith($kernel);
16
    }
17
18
    function it_is_initializable()
19
    {
20
        $this->shouldHaveType(HttpApplication::class);
21
    }
22
}
23