TypeTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testMethodType() 0 13 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace tests;
6
7
use Luke\Types\Blueprint;
8
use PHPUnit\Framework\TestCase;
9
10
class TypeTest extends TestCase
11
{
12
    public function testMethodType()
13
    {
14
        $methodType = new Blueprint;
15
16
        $methodType->id();
17
        $methodType->string('first_name');
18
        $methodType->string('last_name');
19
        $methodType->string('email')->unique();
20
        $methodType->string('password');
21
        $methodType->boolean('active')->default(0);
22
        $methodType->timestamps();
23
24
        $this->assertNotEmpty($methodType->getQuery());
25
    }
26
}
27