Passed
Push — master ( 7fefba...1cd134 )
by Babak
02:56
created

DemoTest::testBasicTest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 18
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 10
nc 1
nop 0
dl 0
loc 18
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace Alive2212\ExcelHelper\Unit;
4
5
use Alive2212\ExcelHelper\ExcelHelper;
6
use Alive2212\ExcelHelper\TestCase;
7
8
class DemoTest extends TestCase
9
{
10
    /**
11
     * A basic test example.
12
     *
13
     * @return void
14
     */
15
    public function testBasicTest()
16
    {
17
        $testArray = [
18
            [
19
                'name' => 'Babak',
20
                'family' => 'Nodoust',
21
                'description' => 'I am powerful man in dokhan since 2017 for ever',
22
            ],
23
            [
24
                'name' => 'Elnaz',
25
                'family' => 'Moslemi',
26
                'description' => 'I am smart woman of the world',
27
            ],
28
        ];
29
        $excelHelper = new ExcelHelper();
30
        $excelHelper->table($testArray)->createExcelFile();
31
32
        $this->assertTrue(true);
33
    }
34
}
35