AbstractPropelTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUpBeforeClass() 0 4 1
A tearDownAfterClass() 0 4 1
1
<?php
2
/*************************************************************************************/
3
/*      This file is part of the Thelia package.                                     */
4
/*                                                                                   */
5
/*      Copyright (c) OpenStudio                                                     */
6
/*      email : [email protected]                                                       */
7
/*      web : http://www.thelia.net                                                  */
8
/*                                                                                   */
9
/*      For the full copyright and license information, please view the LICENSE.txt  */
10
/*      file that was distributed with this source code.                             */
11
/*************************************************************************************/
12
/*************************************************************************************/
13
14
namespace Dealer\Test\PhpUnit\Base;
15
16
use Dealer\Test\PhpUnit\Base\ContainerAwareTestCase;
17
use Propel\Runtime\Propel;
18
19
/**
20
 * Class AbstractPropelTest
21
 * @package Dealer\Test
22
 */
23
abstract class AbstractPropelTest extends ContainerAwareTestCase
24
{
25
    public static function setUpBeforeClass()
26
    {
27
        Propel::getConnection()->beginTransaction();
28
    }
29
30
    public static function tearDownAfterClass()
31
    {
32
        Propel::getConnection()->rollBack();
33
    }
34
}