Passed
Push — master ( ed297f...604ea4 )
by Giuliano
04:39
created

EmptyBaseTest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 20
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A testFullBase() 0 9 1
A testEmptyBase() 0 7 1
1
<?php
2
3
namespace Maestriam\Samurai\Tests\Unit\Entities\Base;
4
5
use Maestriam\Samurai\Entities\Base;
6
use Maestriam\Samurai\Tests\TestCase;
7
8
class EmptyBaseTest extends TestCase
9
{
10
    public function testFullBase()
11
    {
12
        $this->theme('bands/motorhead')->findOrCreate();
13
14
        $base = new Base();
15
16
        $ret = $base->empty();
17
18
        $this->assertFalse($ret);
19
    }
20
21
    public function testEmptyBase()
22
    {   
23
        $base = new Base();
24
25
        $ret = $base->empty();
26
27
        $this->assertTrue($ret);
28
    }
29
}