FileCreateTest::testFileMigration()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace tests;
6
7
use Luke\Migration\Config\FileCreate;
8
use Luke\Migration\Config\MigrationFile;
9
use Luke\Types\Blueprint;
10
use PHPUnit\Framework\TestCase;
11
12
class FileCreateTest extends TestCase
13
{
14
    public function testFileCreate()
15
    {
16
        $name = 'create_test_table';
17
18
        //(new FileCreate())->createFile($name);
19
20
        $this->assertFileExists(CONFIG_PATH . "/" . $name . ".php");
21
    }
22
23
    public function testFileMigration()
24
    {
25
        (new MigrationFile())->actionMigration();
26
27
    }
28
}
29