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

ReadOnlyViolationExceptionTest::basicUsage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 7
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
namespace TraderInteractiveTest\Exceptions;
4
5
use PHPUnit\Framework\TestCase;
6
use TraderInteractive\Exceptions\ReadOnlyViolationException;
7
8
/**
9
 * @coversDefaultClass \TraderInteractive\Exceptions\ReadOnlyViolationException
10
 */
11
final class ReadOnlyViolationExceptionTest extends TestCase
12
{
13
    /**
14
     * @test
15
     *
16
     * @return void
17
     */
18
    public function basicUsage()
19
    {
20
        $expected = 'You cannot do that.';
21
        $exception = new ReadOnlyViolationException($expected);
22
23
        $actual = $exception->getMessage();
24
        $this->assertSame($expected, $actual);
25
    }
26
}
27