test/snac/server/database/DatabaseConnectorTest.php
/**
     * Tests the generic connection (part of the constructor)
     */
Tests the generic connection (part of the constructor)
Tests the generic connection ( part of the constructor )
public function testDatabaseConnection() {
        try {
            $db = new \snac\server\database\DatabaseConnector();
        } catch (Exception $e) {
            $this->fail("Could not connect to database");
        }
    }
public function testDatabaseConnection ( ) { try { $ db = new \ snac \ server \ database \ DatabaseConnector ( ) ; } catch ( Exception $ e ) { $ this -> fail ( " Could not connect to database " ) ; } }
Tests the generic connection (part of the constructor)
Tests the generic connection ( part of the constructor )