TraitTestCase   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 10
ccs 0
cts 4
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
1
<?php
2
/**
3
 * This file is part of the Axstrad library.
4
 *
5
 * (c) Dan Kempster <[email protected]>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace Axstrad\Component\Test;
12
13
/**
14
 * Axstrad\Component\Test\TraitTestCase
15
 *
16
 * Classes that use this trait must be a subclass of PHPUnit_Framework_TestCase
17
 *
18
 * @author Dan Kempster <[email protected]>
19
 * @license http://opensource.org/licenses/MIT MIT
20
 * @package Axstrad/Test
21
 * @subpackage TestCase
22
 */
23
abstract class TraitTestCase extends TestCase
24
{
25
    protected $trait = null;
26
27
28
    public function setUp()
29
    {
30
        $this->fixture = $this->getMockForTrait($this->trait);
31
    }
32
}
33