summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2018-01-05docker image for php 5.2 testingSimon Holywell
2018-01-04individually insert test rows for SQLite pre 3.7.11Simon Holywell
2018-01-03Closes #319 - no reset on cached responseSimon Holywell
2016-12-14#236 add test proving multiple raw wheres workSimon Holywell
2016-12-14Fix up test procedures for idiormSimon Holywell
2016-12-14Merge branch 'bugfix-orm-is-dirty' of https://github.com/tentwofour/idiorm ↵Simon Holywell
into tentwofour-bugfix-orm-is-dirty
2015-04-07Update ORM#is_dirty - swapped isset() for array_key_exists() - isset() will ↵blair
return false when fields have been set null. Update ORMTest#testIsDirty - added tests for filed set to '' and null
2014-06-24Support named placeholders logging and testKunio Murasawa
2014-06-22Added custom caching functionsPeter Ivanov
This is a combination of 20 commits: added cache callback #212 added test Added text for custom cache formating and tests added caching_auto_clear option moved custom cache test for php 5.3+ fixed ConfigTest.php tabs to spaces formating formating added `create_cache_key` callback option added $table_name to clear cache function added $table_name to _create_cache_key added missing params added $table_name to cache_query_result formating tabs added $table_name to check_query_cache unify cache parameters order `table_name` is more important than `connection_name` formating
2014-06-19Update tests to not expect generic exception, as PHPUnit < 3.7 (PHP 5.2) ↵Mitch
can't handle it
2014-06-19Fix merge conflictsMitch
2014-06-08update bindParams to bindParamSoufiane Ghzal
2014-06-07Tests for 27fb7f29a849270b329533b8f7944beb163b1c06Mitch
2014-06-07MockPDOStatement::execute() Strict StandardsMitch
2014-05-29Fixed testing logic.Stefan Andres Charsley
2014-05-29Fixed testing.Stefan Andres Charsley
2014-05-28Merge pull request #202 from lrlopez/where_id_in-2Simon Holywell
where_id_in() for selecting multiple records by primary key
2014-05-28Merge pull request #201 from lrlopez/where_any_isSimon Holywell
Multiple OR'ed conditions support
2014-05-18where_id_in() for selecting multiple records by primary keyLuis Ramón López
2014-05-18Multiple OR'ed conditions supportLuis Ramón López
Multiple OR'ed conditions ------------------------- You can add simple ORed conditions to the same WHERE clause using ``where_any_is``. You should specify multiple conditions using an array of items. Each item will be an associative array that contains a multiple conditions. ```php <?php $people = ORM::for_table('person') ->where_any_is(array( array('name' => 'Joe', 'age' => 10), array('name' => 'Fred', 'age' => 20))) ->find_many(); // Creates SQL: SELECT * FROM `widget` WHERE (( `name` = 'Joe' AND `age` = '10' ) OR ( `name` = 'Fred' AND `age` = '20' )); ``` By default, it uses the equal operator for every column, but it can be overriden for any column using a second parameter: ```php <?php $people = ORM::for_table('person') ->where_any_is(array( array('name' => 'Joe', 'age' => 10), array('name' => 'Fred', 'age' => 20)), array('age' => '>')) ->find_many(); // Creates SQL: SELECT * FROM `widget` WHERE (( `name` = 'Joe' AND `age` > '10' ) OR ( `name` = 'Fred' AND `age` > '20' )); ``` If you want to set the default operator for all the columns, just pass it as the second parameter: ```php <?php $people = ORM::for_table('person') ->where_any_is(array( array('score' => '5', 'age' => 10), array('score' => '15', 'age' => 20)), '>') ->find_many(); // Creates SQL: SELECT * FROM `widget` WHERE (( `score` > '5' AND `age` > '10' ) OR ( `score` > '15' AND `age` > '20' )); ```
2014-05-06Modify test to run query with db not explicitly setAndrew Meredith
2014-04-261. Adjustment of code to work with multiple raw_joins 2. Test multiple raw joinsIgor Moiseev
2014-04-26Implemetation of raw_joinIgor Moiseev
2014-04-26Tests for compound primary keys queries addedLuis Ramón López
2014-04-26INSERT queries are now compound primary keys awareLuis Ramón López
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Remove some empty results from the array before checking.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Updated preg_match_all parameters.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Changed some debugging code.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Added some more debug code.
2014-04-26FIX: Added parameter array checkingStefan Andres Charsley
Added debug code to see why it's failing.
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