InvalidArgumentExceptionTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testException() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the Holiday Library.
5
 *
6
 * (c) Michał Mańko <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Michalmanko\Holiday\Test\Provider\Exception;
13
14
use Michalmanko\Holiday\Provider\Exception\InvalidArgumentException;
15
16
/**
17
 * @author Michał Mańko <[email protected]>
18
 */
19
class InvalidArgumentExceptionTest extends \PHPUnit_Framework_TestCase
20
{
21
    /**
22
     * @var InvalidArgumentException
23
     */
24
    protected $object;
25
26
    protected function setUp()
27
    {
28
        $this->object = new InvalidArgumentException();
29
    }
30
31
    public function testException()
32
    {
33
        $this->assertInstanceOf(
34
            '\\Michalmanko\\Holiday\\Exception\\InvalidArgumentException',
35
            $this->object
36
        );
37
    }
38
}
39