ExpectationNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 6
cts 6
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 3
crap 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