Test Failed
Push — master ( 389090...91c650 )
by Ryuichi
02:53
created

ExceptionDelegatorProvider   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A exceptionProvider() 0 9 1
1
<?php
2
namespace WebStream\Exception\Test\Providers;
3
4
use WebStream\Exception\ApplicationException;
5
use WebStream\Exception\SystemException;
6
use WebStream\Exception\DelegateException;
7
8
/**
9
 * ExceptionDelegatorProvider
10
 * @author Ryuichi TANAKA.
11
 * @since 2017/01/08
12
 * @version 0.7
13
 */
14
trait ExceptionDelegatorProvider
15
{
16
    public function exceptionProvider()
17
    {
18
        return [
19
            [new SystemException("error message"), new SystemException("")],
20
            [new ApplicationException("error message"), new ApplicationException("")],
21
            [SystemException::class, new SystemException("")],
22
            [ApplicationException::class, new ApplicationException("")],
23
        ];
24
    }
25
}
26