Completed
Push — master ( 216893...778ae2 )
by Alexander
08:49
created

DataGridTest::testGridCreation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 9
rs 9.6666
cc 1
eloc 6
nc 1
nop 0
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
}