TraitTestCase::setUp()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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