ExpectationNotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 11
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Overwatch\ExpectationBundle\Exception;
4
5
/**
6
 * ExpectationNotFoundException
7
 * Thrown by the ExpectationManager when requested to find a non-existant
8
 * expectation by alias.
9
 */
10
class ExpectationNotFoundException extends \OutOfBoundsException
11
{
12 2
    public function __construct($alias, $code = 0, $previous = null)
13
    {
14 2
        parent::__construct(
15 2
            'Expectation with ' . $alias . ' could not be found.',
16 2
            $code,
17
            $previous
18 2
        );
19 2
    }
20
}
21