diff options
author | Tom Gregory <[email protected]> | 2013-01-22 00:23:04 -0500 |
---|---|---|
committer | Tom Gregory <[email protected]> | 2013-01-22 00:23:04 -0500 |
commit | 98b806652bab694797c0d09b41f198b7bf6f2c4c (patch) | |
tree | 077eefaaea3098418fa9eea317b87a854abd6f51 /test/test_classes.php | |
parent | 349532a2c5b8d968f8fa7743b33b8d50d3525630 (diff) | |
parent | 6391acb3371e07742cf94c7c4bc4cc3888a6cae5 (diff) |
Merge remote-tracking branch 'upstream/develop' into dev-multi. Updated documentation to rat format, and tests to use phpunit.
(Resolved)Conflicts:
README.markdown
idiorm.php
test/test_queries.php
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 cf805c0..77d67f3 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; /** @@ -31,13 +31,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; } } @@ -119,7 +119,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; } @@ -127,7 +127,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'); |