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

HandlerTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 1
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
}