test/snac/server/database/DatabaseConnectorTest.php
/**
     * Tests a query with a very simple statement
     */
Tests a query with a very simple statement
Tests a query with a very simple statement
public function testDatabaseQuerySimpleStatement() {
        try {
            $db = new \snac\server\database\DatabaseConnector();
            $db->query("SELECT NULL;", array());
        } catch (Exception $e) {
            $this->fail("Could not query (prepare and execute) no-op. " . $e->getMessage());
        }
    }
public function testDatabaseQuerySimpleStatement ( ) { try { $ db = new \ snac \ server \ database \ DatabaseConnector ( ) ; $ db -> query ( " SELECT NULL; " , array ( ) ) ; } catch ( Exception $ e ) { $ this -> fail ( " Could not query (prepare and execute) no-op.  " . $ e -> getMessage ( ) ) ; } }
Tests a query with a very simple statement
Tests a query with a very simple statement