From 8fa6f7059f56684397357a6a8eb69dbdd5102681 Mon Sep 17 00:00:00 2001 From: Simon Holywell Date: Thu, 3 Jan 2013 13:37:19 +0000 Subject: Add test for get_last_statement --- test/test_classes.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/test_classes.php') diff --git a/test/test_classes.php b/test/test_classes.php index a948d01..ff31764 100644 --- a/test/test_classes.php +++ b/test/test_classes.php @@ -5,7 +5,7 @@ * Mock version of the PDOStatement class. * */ - class DummyPDOStatement extends PDOStatement { + class MockPDOStatement extends PDOStatement { private $current_row = 0; /** @@ -27,13 +27,13 @@ * of the PDO API. * */ - class DummyPDO extends PDO { + class MockPDO extends PDO { /** * Return a dummy PDO statement */ public function prepare($statement, $driver_options=array()) { - $this->last_query = new DummyPDOStatement($statement); + $this->last_query = new MockPDOStatement($statement); return $this->last_query; } } @@ -77,7 +77,7 @@ /** * Report a passed test */ - private static function report_pass($test_name) { + public static function report_pass($test_name) { echo self::format_line("PASS: $test_name", 'GREEN'); self::$passed_tests[] = $test_name; } @@ -85,7 +85,7 @@ /** * Report a failed test */ - private static function report_failure($test_name, $expected, $actual) { + public static function report_failure($test_name, $expected, $actual) { echo self::format_line("FAIL: $test_name", 'RED'); echo self::format_line("Expected: $expected", 'RED'); echo self::format_line("Actual: $actual", 'RED'); -- cgit v1.2.3