Completed
Pull Request — master (#1)
by Adam
06:20 queued 03:33
created

HandlerExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testInvalidHandler() 0 7 1
1
<?php
2
3
namespace Equip\Queue\Exception;
4
5
use Equip\Queue\TestCase;
6
7
class HandlerExceptionTest extends TestCase
8
{
9
    public function testInvalidHandler()
10
    {
11
        $exception = HandlerException::invalidHandler('test');
12
13
        $this->assertInstanceOf(HandlerException::class, $exception);
14
        $this->assertSame('The handler for `test` is invalid.', $exception->getMessage());
15
    }
16
}
17