Changeset 80

Show
Ignore:
Timestamp:
08/06/08 14:26:11 (4 months ago)
Author:
scott
Message:

Fix tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tests/sqlite3_22_loadextension.phpt

    r72 r80  
    2222?> 
    2323--EXPECTF-- 
    24 Warning: SQLite3::loadExtension(): Unable to load extension at './myext.txt' in %s on line %d 
     24Warning: SQLite3::loadExtension(): Unable to load extension at '.%emyext.txt' in %s on line %d 
    2525bool(false) 
    2626bool(true) 
  • trunk/tests/sqlite3_25_create_aggregate.phpt

    r79 r80  
    88require_once(dirname(__FILE__) . '/new_db.inc'); 
    99 
    10 function sum_list_step(&$context, $string) { 
     10function sum_list_step($context, $num_args, $string) { 
    1111        if (empty($context)) 
    1212        { 
    1313                $context = array('total' => 0, 'values' => array()); 
    1414        } 
    15         var_dump($context); 
    1615        $context['total'] += intval($string); 
    1716        $context['values'][] = $context['total']; 
    18         return true
     17        return $context
    1918} 
    2019 
    21 function sum_list_finalize(&$context) { 
    22         var_dump($context); 
     20function sum_list_finalize($context) { 
    2321        return implode(',', $context['values']); 
    2422} 
     
    5149bool(true) 
    5250bool(true) 
    53  
     51Array 
     52
     53    [S(a)] => 1,3,6,10,14 
     54    [S(b)] => -1,-3,-6,-10,-14 
     55
    5456Closing database 
    5557bool(true)