BadDataTablesRepositoryExceptionTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
dl 0
loc 12
c 1
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A test__construct() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the jquery-datatables-bundle package.
5
 *
6
 * (c) 2018 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\Bundle\JQuery\DataTablesBundle\Tests\Exception;
13
14
use Exception;
15
use WBW\Bundle\JQuery\DataTablesBundle\Exception\BadDataTablesRepositoryException;
16
use WBW\Bundle\JQuery\DataTablesBundle\Repository\DataTablesRepositoryInterface;
17
use WBW\Bundle\JQuery\DataTablesBundle\Tests\AbstractTestCase;
18
19
/**
20
 * Bad DataTables repository exception test.
21
 *
22
 * @author webeweb <https://github.com/webeweb>
23
 * @package WBW\Bundle\JQuery\DataTablesBundle\Tests\Exception
24
 */
25
class BadDataTablesRepositoryExceptionTest extends AbstractTestCase {
26
27
    /**
28
     * Test __construct()
29
     *
30
     * @return void
31
     */
32
    public function test__construct(): void {
33
34
        $obj = new BadDataTablesRepositoryException(new Exception());
35
36
        $this->assertEquals('The DataTables repository "Exception" must implement ' . DataTablesRepositoryInterface::class, $obj->getMessage());
37
    }
38
}
39