Completed
Push — master ( 92958f...e9ab7e )
by John
13s
created

MalformedContentExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A malformedContentWillThrow400() 0 6 1
1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of the KleijnWeb\SwaggerBundle package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
9
namespace KleijnWeb\SwaggerBundle\Tests\Exception;
10
11
use KleijnWeb\SwaggerBundle\Exception\MalformedContentException;
12
use PHPUnit_Framework_TestCase;
13
14
class MalformedContentExceptionTest extends PHPUnit_Framework_TestCase
15
{
16
    /**
17
     * @test
18
     */
19
    public function malformedContentWillThrow400()
20
    {
21
        $exception = new MalformedContentException();
22
23
        $this->assertEquals('400', $exception->getCode());
24
    }
25
}
26