Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / DbalFunctionalTestCase.php
1 <?php
2
3 namespace Doctrine\Tests;
4
5 class DbalFunctionalTestCase extends DbalTestCase
6 {
7     /* Shared connection when a TestCase is run alone (outside of it's functional suite) */
8     private static $_sharedConn;
9
10     /**
11      * @var Doctrine\DBAL\Connection
12      */
13     protected $_conn;
14
15     protected function resetSharedConn()
16     {
17         $this->sharedFixture['conn'] = null;
18         self::$_sharedConn = null;
19     }
20
21     protected function setUp()
22     {
23         if (isset($this->sharedFixture['conn'])) {
24             $this->_conn = $this->sharedFixture['conn'];
25         } else {
26             if ( ! isset(self::$_sharedConn)) {
27                 self::$_sharedConn = TestUtil::getConnection();
28             }
29             $this->_conn = self::$_sharedConn;
30         }
31     }
32 }