<?php
/**
 *
 */

$tests = array( 
	array( 'Old', $wpdb->get_tables('old'), $wpdb->old_tables ), # test old tables
	array( 'All', $wpdb->get_tables('all'), $wpdb->tables),      # test all tables	
	array( 'Current', $wpdb->get_tables('current'), array_diff($wpdb->tables, $wpdb->old_tables ) ),
	# test current tables 
	array( 'Default', $wpdb->get_tables('current'), $wpdb->get_tables() ), # test default argument
);

foreach ($tests as $test) {
	list($name, $one, $two) = $test;
	$same   = ( $one === $two );
	$result = $same ? 'OK' : 'FAILED';
	printf('<h2>%s-Test</h2>Result: %s<hr>', $name, $result);		
}

