diff options
author | Simon Holywell <[email protected]> | 2013-01-03 13:37:19 +0000 |
---|---|---|
committer | Simon Holywell <[email protected]> | 2013-01-03 13:37:19 +0000 |
commit | 8fa6f7059f56684397357a6a8eb69dbdd5102681 (patch) | |
tree | c52f54486af7fc7abf6a5063140d337d020f23bf /test/test_classes.php | |
parent | eb8d6ee4a6e9016d15684df2bad8c645428f152e (diff) |
Add test for get_last_statement
Diffstat (limited to 'test/test_classes.php')
-rw-r--r-- | test/test_classes.php | 10 |
1 files changed, 5 insertions, 5 deletions
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'); |