Passed
Pull Request — master (#3)
by
unknown
04:39
created

MissingValueExceptionTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 14
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A basicUsage() 0 7 1
1
<?php
2
3
namespace TraderInteractiveTest\Exceptions;
4
5
use PHPUnit\Framework\TestCase;
6
use TraderInteractive\Exceptions\MissingValueException;
7
8
/**
9
 * @coversDefaultClass \TraderInteractive\Exceptions\MissingValueException
10
 */
11
final class MissingValueExceptionTest extends TestCase
12
{
13
    /**
14
     * @test
15
     *
16
     * @return void
17
     */
18
    public function basicUsage()
19
    {
20
        $expected = 'There is something missing here...';
21
        $exception = new MissingValueException($expected);
22
23
        $actual = $exception->getMessage();
24
        $this->assertSame($expected, $actual);
25
    }
26
}
27