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 |