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

IsCachedTraitTest::test_destruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 2
c 1
b 0
f 1
nc 1
nop 0
dl 0
loc 6
rs 10
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