Passed
Push — 2.0 ( f5ddb0...24c833 )
by Samuel
02:58 queued 47s
created

HandlerTest::testHandle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace SMartins\Exceptions\Tests\Unit;
4
5
use Exception;
6
use SMartins\Exceptions\JSONAPI\Error;
7
use SMartins\Exceptions\Tests\TestCase;
8
use SMartins\Exceptions\Handlers\Handler;
9
10
class HandlerTest extends TestCase
11
{
12
    public function testHandle()
13
    {
14
        $exception = new Exception('Test exception', 1);
15
16
        $handler = new Handler($exception);
17
        $this->assertInstanceOf(Error::class, $handler->handle());
18
    }
19
}