Completed
Pull Request — dev (#11)
by
unknown
04:51
created

InternalErrorExceptionTest::synopsis()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
3
namespace Vectorface\SnappyRouterTests\Exception;
4
5
use \PHPUnit_Framework_TestCase;
6
use Vectorface\SnappyRouter\Exception\InternalErrorException;
7
8
/**
9
 * Tests the InternalErrorException class.
10
 * @copyright Copyright (c) 2014, VectorFace, Inc.
11
 * @author Dan Bruce <[email protected]>
12
 */
13
class InternalErrorExceptionTest extends \PHPUnit_Framework_TestCase
14
{
15
    /**
16
     * An overview of how to use the exception.
17
     * @test
18
     */
19
    public function synopsis()
20
    {
21
        $message = 'hello world';
22
        $exception = new InternalErrorException($message);
23
24
        $this->assertEquals($message, $exception->getMessage());
25
        $this->assertEquals(500, $exception->getAssociatedStatusCode());
26
    }
27
}
28