Completed
Branch master (91c650)
by Ryuichi
05:32 queued 02:45
created

ExceptionProvider   B

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 17

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 17
dl 0
loc 27
rs 7.8571
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
B exceptionProvider() 0 24 1
1
<?php
2
namespace WebStream\Exception\Test\Providers;
3
4
use WebStream\Exception\ApplicationException;
5
use WebStream\Exception\SystemException;
6
use WebStream\Exception\Extend\AnnotationException;
7
use WebStream\Exception\Extend\ClassNotFoundException;
8
use WebStream\Exception\Extend\CollectionException;
9
use WebStream\Exception\Extend\CsrfException;
10
use WebStream\Exception\Extend\DatabaseException;
11
use WebStream\Exception\Extend\ForbiddenAccessException;
12
use WebStream\Exception\Extend\InvalidArgumentException;
13
use WebStream\Exception\Extend\InvalidRequestException;
14
use WebStream\Exception\Extend\IOException;
15
use WebStream\Exception\Extend\LoggerException;
16
use WebStream\Exception\Extend\MethodNotFoundException;
17
use WebStream\Exception\Extend\ResourceNotFoundException;
18
use WebStream\Exception\Extend\RouterException;
19
use WebStream\Exception\Extend\SessionTimeoutException;
20
use WebStream\Exception\Extend\ValidateException;
21
22
/**
23
 * ExceptionProvider
24
 * @author Ryuichi TANAKA.
25
 * @since 2017/01/08
26
 * @version 0.7
27
 */
28
trait ExceptionProvider
29
{
30
    public function exceptionProvider()
31
    {
32
        return [
33
            [new SystemException("error message")],
34
            [new ApplicationException("error message")],
35
            [new SystemException("")],
36
            [new ApplicationException("")],
37
            [new AnnotationException("error message")],
38
            [new ClassNotFoundException("error message")],
39
            [new CollectionException("error message")],
40
            [new CsrfException("error message")],
41
            [new DatabaseException("error message")],
42
            [new ForbiddenAccessException("error message")],
43
            [new InvalidArgumentException("error message")],
44
            [new InvalidRequestException("error message")],
45
            [new IOException("error message")],
46
            [new LoggerException("error message")],
47
            [new MethodNotFoundException("error message")],
48
            [new ResourceNotFoundException("error message")],
49
            [new RouterException("error message")],
50
            [new SessionTimeoutException("error message")],
51
            [new ValidateException("error message")]
52
        ];
53
    }
54
}
55