DataGridTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testGridCreation() 0 9 1
1
<?php
2
3
namespace AtDataGridTest;
4
5
use AtDataGrid\DataGrid;
6
use PHPUnit\Framework\TestCase;
7
8
/**
9
 * @covers AtDataGrid\DataGrid
10
 */
11
class DataGridTest extends TestCase
12
{
13
    public function testGridCreation()
14
    {
15
        $datasourceMock = $this->createMock('AtDataGrid\DataSource\ZendDb\TableGateway');
16
        $grid = new DataGrid($datasourceMock);
17
18
        $this->assertInstanceOf(\Countable::class, $grid);
19
        $this->assertInstanceOf(\IteratorAggregate::class, $grid);
20
        $this->assertInstanceOf(\ArrayAccess::class, $grid);
21
    }
22
}