Passed
Push — master ( 43534e...6dc374 )
by Alex
01:15 queued 12s
created

EventListenerExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 3
c 0
b 0
f 0
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testImplementsException() 0 5 1
1
<?php
0 ignored issues
show
Coding Style introduced by
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
2
3
declare(strict_types=1);
4
5
namespace ArpTest\EventDispatcher\Listener\Exception;
6
7
use Arp\EventDispatcher\Listener\Exception\EventListenerException;
8
use PHPUnit\Framework\TestCase;
9
10
/**
11
 * @author  Alex Patterson <[email protected]>
12
 * @package ArpTest\EventDispatcher\Listener\Exception
13
 */
14
final class EventListenerExceptionTest extends TestCase
15
{
16
    /**
17
     * Assert that the EventListenerException extends from Exception.
18
     *
19
     * @covers \Arp\EventDispatcher\Listener\Exception\EventListenerException
20
     */
21
    public function testImplementsException(): void
22
    {
23
        $exception = new EventListenerException();
24
25
        $this->assertInstanceOf(\Exception::class, $exception);
26
    }
27
}
28