Passed
Push — master ( b33b8e...5acb2c )
by Gabriel
04:09
created

IsCachedTraitTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_destruct() 0 6 1
1
<?php
2
3
namespace Nip\Records\Tests\Registry\Traits;
4
5
use Nip\Records\Registry\ModelRegistry;
6
use Nip\Records\Tests\AbstractTest;
7
8
/**
9
 * Class IsCachedTraitTest
10
 * @package Nip\Records\Tests\Registry\Traits
11
 */
12
class IsCachedTraitTest extends AbstractTest
13
{
14
    public function test_destruct()
15
    {
16
        $registry = \Mockery::mock(ModelRegistry::class)->shouldAllowMockingProtectedMethods()->makePartial();
17
//        $registry->shouldReceive('checkSaveCache')->once();
18
19
        self::assertInstanceOf(ModelRegistry::class, $registry);
20
21
//        unset($registry);
22
    }
23
}
24