Passed
Push — master ( b2accd...5a4945 )
by WEBEWEB
01:50
created

SkiDataTooLongDataExceptionTest::testConstruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * This file is part of the skidata-library package.
5
 *
6
 * (c) 2017 WEBEWEB
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace WBW\Library\SkiData\Tests\Exception;
13
14
use PHPUnit_Framework_TestCase;
15
use WBW\Library\SkiData\Exception\SkiDataTooLongDataException;
16
17
/**
18
 * SkiData too long data exception test.
19
 *
20
 * @author webeweb <https://github.com/webeweb/>
21
 * @package WBW\Library\SkiData\Tests\Exception
22
 * @final
23
 */
24
final class SkiDataTooLongDataExceptionTest extends PHPUnit_Framework_TestCase {
25
26
    /**
27
     * Tests the __construct() method.
28
     *
29
     * @return void
30
     */
31
    public function testConstruct() {
32
33
        $ex = new SkiDataTooLongDataException("", 0);
34
        $this->assertEquals("The data \"\" exceeds the length \"0\" allowed", $ex->getMessage());
35
    }
36
37
}
38