summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Fixed the regex not having backslashes escaped.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Updated regex to disregard placeholders within quotes.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Fixed regex issue that caused almost all tests to fail.
2014-04-26Added parameter array checkingStefan Andres Charsley
Testing: Checks the parameter array to ensure the correct number of values inside the parameter with sequential integer indexes. Production: Strips out any non-integer indexes from the parameter array inside the _log_query function.
2014-01-23Merge branch 'develop' of github.com:j4mie/idiorm into developSimon Holywell
2014-01-23Issue #176 add test for reported case - passesSimon Holywell
2013-12-26Adds regression tests for missing magic method calls to ORM and IdiormResultSetmichaelward82
2013-08-30Minor improvement to test/bootstrap.phpSimon Holywell
2013-08-30Repair mock results generatorSimon Holywell
2013-08-28Add MS SQL `TOP` style syntax supportSimon Holywell
2013-08-28Merge branch 'master' of https://github.com/JoelMarcey/idiorm into developSimon Holywell
2013-08-28Correct class nameSimon Holywell
2013-08-28Test and document the query logger callbackSimon Holywell
2013-08-28Repair state after completing testSimon Holywell
2013-08-28Document and test PSR-1 compliant method accessSimon Holywell
2013-08-28Update bootstrap.php so the tests can run on both HHVM and ZendJoel Marcey
PDOStatement does not have a direct constructor (i.e., __construct). Newing up a PDOStatement or subclass (e.g., MockPDOStatement) does technically work in Zend, but HHVM throws. A correct way to have the code currently structured in bootstrap.php work correctly on both Zend and HHVM is provide a default constructor and execute method in MockPDOStatement. It would probably best long term to avoid newing up a PDOStatement and create the queries another way. But this works for now.
2013-08-28Merge branch 'vicvicvic-wherealias' of https://github.com/vicvicvic/idiorm ↵Simon Holywell
into develop
2013-08-28Merge pull request #120 from tassoevan/developSimon Holywell
Ignore result columns when calling a aggregate function
2013-08-18Corrects typo in "testJoinWithAliasesAndWhere" method name.Victor Andrée
2013-08-16Add static method `get_config`Mike Estes
2013-08-14Uses table alias in WHEREVictor Andrée
If a table alias is used for the main table, it's not valid according to the SQL standard to refer to it by it's "real name" (see http://www.postgresql.org/docs/8.2/static/queries-table-expressions.html #QUERIES-TABLE-ALIASES). This causes problems when doing JOIN with a table alias for the "main table", since previous code always used table name. Now, we check for a table alias.
2013-05-08Ignore result columns when calling a aggregate functionTasso Evangelista
2013-04-16Add support for T-SQL style TOP clausesSebastien Bariteau
2013-01-23Remove obselete testing systemSimon Holywell
2013-01-23Remove duplicate code from test bootstrapSimon Holywell
2013-01-23Separate test for multiple connection cachesSimon Holywell
2013-01-23Merge branch 'develop' into multiple-connectionsSimon Holywell
Conflicts: test/test_classes.php test/test_queries.php
2013-01-23Finish transferring tests into PHPUnitSimon Holywell
2013-01-23Merge remote-tracking branch 'tag/dev-multi' into multiple-connectionsSimon Holywell
2013-01-22Add in more phpunit tests\!Simon Holywell
2013-01-22Apparently not all files were included in previous commit.Tom Gregory
2013-01-22Merge remote-tracking branch 'upstream/develop' into dev-multi. Updated ↵Tom Gregory
documentation to rat format, and tests to use phpunit. (Resolved)Conflicts: README.markdown idiorm.php test/test_queries.php
2013-01-21Add more query building testsSimon Holywell
2013-01-18Add more tests to suiteSimon Holywell
2013-01-18Move out non-query gen testsSimon Holywell
2013-01-18Move more query tests over to PHPUnitSimon Holywell
2013-01-17Begin moving query building tests into phpunitSimon Holywell
2013-01-15Add ResultSet functionality to IdiormSimon Holywell
2013-01-15Add in some PHPUnit testsSimon Holywell
2013-01-15Add ArrayAccess to ORM propertiesSimon Holywell
2013-01-04Add HAVING clause support to query builderSimon Holywell
2013-01-04Issue #74 escaping quote symbols in "_quote_identifier_part"Simon Holywell
2013-01-03Issue #90 When using set_expr alone it doesn't trigger query creationSimon Holywell
2013-01-03Add test for get_last_statementSimon Holywell
2012-11-26Add raw_execute() to ORMtag
2012-11-26Fixed query logging for delete_many; added unit test for delete_manytag
2012-11-23Multiple connection support for Idiormtag
Mutiple connections code, including documentation and unit tests. Utilizes key names to distinguish connections, but uses a default connection if none specified. I don't (yet) use multiple connections in my work (it's pending), so this has not been tested "in the wild". Added unit tests with additional connections, ran unit tests for Paris against this build too, so an unmodified Paris is forward-compatible with this commit (mulitple connections support not yet coded for Paris). Does *NOT* add support for queries across multiple connections. (I don't even want to go there ...) ##### Edge-case compatibility breaks: * ORM::_setup_identifier_quote_character visibility was changed to protected (which was likely original intent, judging by prefixed name) * May break compatibility if ORM has been extended, **and** subclasses directly utilize `::_config`, `::_db`, `::_query_log`, or `::_query_cache` instead of using pre-existing accessor methods. (Paris does not do this; all Paris tests pass) * Re-use of `Tester` class outside of Idiorm repo, as `Tester::check_equal()` was renamed to `Tester::check_equal_query()` ##### Other notes New method: `ORM::get_connection_keys()`. New `Tester` method: `Tester::check_equal_string()`. TODO: Consider adding methods to get (connection-specific) configuration info.
2012-11-21Add raw_execute() to ORMtag
2012-11-21Fixed query logging for delete_many; added unit test for delete_manytag
2012-11-14Issue #57 _log_query errors when given raw ? or %Simon Holywell
Thanks to Jeff Roberson <[email protected]> for his regex skills.