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

ExceptionDelegatorProvider::exceptionProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 0
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