FlashesTest   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 21
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 3 1
A testConstruct() 0 4 1
1
<?php
2
/**
3
 * Yii2 adapter for PNotify JQuery extension
4
 *
5
 * @link      https://github.com/hiqdev/yii2-pnotify
6
 * @package   yii2-pnotify
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\pnotify\tests\unit;
12
13
use hiqdev\pnotify\Flashes;
14
15
class FlashesTest extends \PHPUnit_Framework_TestCase
16
{
17
    /**
18
     * @var Flashes
19
     */
20
    protected $object;
21
22
    protected function setUp()
23
    {
24
        $this->object = new Flashes();
25
    }
26
27
    protected function tearDown()
28
    {
29
    }
30
31
    public function testConstruct()
32
    {
33
        $this->assertInstanceOf(Flashes::class, $this->object);
34
    }
35
}
36