| Total Complexity | 6 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 5 | class DatabaseTest extends TestCase |
||
| 6 | { |
||
| 7 | |||
| 8 | public static function setUpBeforeClass() |
||
| 9 | { |
||
| 10 | |||
| 11 | } |
||
| 12 | |||
| 13 | public static function tearDownAfterClass() |
||
| 15 | |||
| 16 | } |
||
| 17 | |||
| 18 | protected function setUp() |
||
| 19 | { |
||
| 20 | } |
||
| 21 | |||
| 22 | protected function tearDown() |
||
| 24 | } |
||
| 25 | |||
| 26 | public function testConnectToDatabaseSuccessfully() |
||
| 27 | { |
||
| 28 | $cfg = get_db_config(); |
||
| 29 | $db = new Database($cfg, false); |
||
| 30 | $isConnected = $db->connect(); |
||
| 31 | $this->assertTrue($isConnected); |
||
| 32 | } |
||
| 33 | |||
| 34 | public function testCannotConnectToDatabase() |
||
| 39 | } |
||
| 40 | |||
| 41 | } |