DenyUseTest::testConstructor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
declare(strict_types=1);
3
/**
4
 * Created by PhpStorm.
5
 * User: danchukas
6
 * Date: 2017-07-15 01:17
7
 */
8
9
namespace DanchukAS\DenyMultiplyRunTest;
10
11
use PHPUnit\Framework\TestCase;
12
13
/**
14
 * Class DenyUseTest
15
 * Як використовувати заборонено.
16
 * @package DanchukAS\DenyMultiplyRunTest
17
 */
18
class DenyUseTest extends TestCase
19
{
20
    /**
21
     * @expectedException \Error
22
     */
23
    public function testConstructor()
24
    {
25
        // Because not founded how disable inspection "Call to private from invalid context" for phpstorm.
26
        //new $class; new DenyMultiplyRun;
27
        $class = 'DenyMultiplyRun';
28
        new $class;
29
    }
30
}
31