public function testThrowExceptionIfNotArray()
 {
     $anArray = array('hello world');
     $this->assertTrue(ToppaFunctions::throwExceptionIfNotArray($anArray));
     try {
         $aNumber = 5;
         ToppaFunctions::throwExceptionIfNotArray($aNumber);
     } catch (Exception $e) {
         $this->pass();
     }
     try {
         $aString = 'hello, world';
         $this->assertTrue(ToppaFunctions::throwExceptionIfNotArray($aString));
     } catch (Exception $e) {
         $this->pass();
     }
 }
 public function generateSqlDeleteStatement($tableName, array $whereKeysAndValues)
 {
     ToppaFunctions::throwExceptionIfNotString($tableName);
     ToppaFunctions::throwExceptionIfNotArray($whereKeysAndValues);
     $sql = "delete from {$tableName} where ";
     array_walk($whereKeysAndValues, array($this, 'sqlEscapeCallback'));
     foreach ($whereKeysAndValues as $k => $v) {
         $sql .= "{$k} = {$v} and ";
     }
     $sql = substr($sql, 0, -5);
     $sql .= ";";
     return $sql;
 }