Passed
Push — master ( bf1af5...e52ce1 )
by Ryan
14:07
created

MiddlewareExceptionTest::testThrow()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
c 0
b 0
f 0
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * Copyright (c) 2017 Ryan Parman <http://ryanparman.com>.
4
 * Copyright (c) 2017 Contributors.
5
 *
6
 * http://opensource.org/licenses/Apache2.0
7
 */
8
9
declare(strict_types=1);
10
11
namespace SimplePie\Test\Unit\Exception;
12
13
use SimplePie\Exception\MiddlewareException;
14
use SimplePie\Test\Unit\AbstractTestCase;
15
16
/**
17
 * @coversNothing
18
 */
19
class MiddlewareExceptionTest extends AbstractTestCase
20
{
21
    public function testThrow(): void
22
    {
23
        $this->expectException(\SimplePie\Exception\MiddlewareException::class);
24
        $this->expectExceptionMessage('This is a test message.');
25
26
        throw new MiddlewareException('This is a test message.');
27
    }
28
}
29