BodyFactoryTest::testCreate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 8
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace AbterPhp\Admin\Grid\Factory\Table;
6
7
use AbterPhp\Framework\Grid\Component\Body;
8
use PHPUnit\Framework\TestCase;
9
10
class BodyFactoryTest extends TestCase
11
{
12
    public function testCreate()
13
    {
14
        $sut = new BodyFactory();
15
16
        $getters = ['foo' => '__toString'];
17
        $body = $sut->create($getters);
18
19
        $this->assertInstanceOf(Body::class, $body);
20
    }
21
}
22