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