TestCase   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 24
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A tearDown() 0 5 1
1
<?php
2
/**
3
 * Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
4
 *
5
 * Licensed under The MIT License
6
 * Redistributions of files must retain the above copyright notice.
7
 *
8
 * @copyright Copyright 2016 - 2018, Cake Development Corporation (http://cakedc.com)
9
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
10
 */
11
12
namespace CakeDC\Api\TestSuite;
13
14
use CakeDC\Api\Service\ServiceRegistry;
15
use Cake\Core\Configure;
16
use Cake\TestSuite\TestCase as BaseTestCase;
17
use Cake\Utility\Hash;
18
19
/**
20
 * Class TestCase
21
 *
22
 * @package CakeDC\Api\TestSuite
23
 */
24
class TestCase extends BaseTestCase
25
{
26
27
    /**
28
     * setUp
29
     *
30
     * @return void
31
     */
32 52
    public function setUp()
33
    {
34 52
        parent::setUp();
35 52
    }
36
37
    /**
38
     * tearDown
39
     *
40
     * @return void
41
     */
42 52
    public function tearDown()
43
    {
44 52
        parent::tearDown();
45 52
        ServiceRegistry::getServiceLocator()->clear();
46 52
    }
47
}
48