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

InternalErrorExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A synopsis() 0 8 1
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