aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop-olympus' into developAndreas Fischer2012-12-082-1/+48
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10205] Reduce nesting in mysql drivers. [ticket/10205] Rewrite _sql_error implementations to have a single return. [ticket/10205] Cosmetic changes. [ticket/10205] Add some columns to the empty fixture file for mssqlnative. [ticket/10205] Delete stray return. [ticket/10205] Test failed connection attempts. [ticket/10205] Check for function existence in mssql connect method. [ticket/10205] Convert mssqlnative driver to the same logic. [ticket/10205] Fix a parse error in oracle driver. [ticket/10205] Fix remaining db drivers. [ticket/10205] Avoid calling mysqli functions when mysqli is missing. [ticket/10205] Account for potentially missing extensions in dbal. Conflicts: tests/fixtures/empty.xml
| * Merge remote-tracking branch 'p/ticket/10205' into develop-olympusAndreas Fischer2012-12-082-0/+52
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/10205: [ticket/10205] Reduce nesting in mysql drivers. [ticket/10205] Rewrite _sql_error implementations to have a single return. [ticket/10205] Cosmetic changes. [ticket/10205] Add some columns to the empty fixture file for mssqlnative. [ticket/10205] Delete stray return. [ticket/10205] Test failed connection attempts. [ticket/10205] Check for function existence in mssql connect method. [ticket/10205] Convert mssqlnative driver to the same logic. [ticket/10205] Fix a parse error in oracle driver. [ticket/10205] Fix remaining db drivers. [ticket/10205] Avoid calling mysqli functions when mysqli is missing. [ticket/10205] Account for potentially missing extensions in dbal.
| | * [ticket/10205] Cosmetic changes.Oleg Pudeyev2012-12-041-1/+2
| | | | | | | | | | | | PHPBB3-10205
| | * [ticket/10205] Add some columns to the empty fixture file for mssqlnative.Oleg Pudeyev2012-12-041-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Supposedly it choked on the version without any columns thusly: phpbb_dbal_connect_test::test_failing_connect PDOException: SQLSTATE[HY090]: [Microsoft][ODBC Driver Manager] Invalid string or buffer length PHPBB3-10205
| | * [ticket/10205] Delete stray return.Oleg Pudeyev2012-12-041-2/+0
| | | | | | | | | | | | PHPBB3-10205
| | * [ticket/10205] Test failed connection attempts.Oleg Pudeyev2012-12-042-0/+49
| | | | | | | | | | | | PHPBB3-10205
| * | Merge remote-tracking branch 'p/ticket/11248' into develop-olympusIgor Wiedler2012-12-071-51/+50
| |\ \ | | | | | | | | | | | | | | | | * p/ticket/11248: [ticket/11248] Line endings to LF.
| | * | [ticket/11248] Line endings to LF.Oleg Pudeyev2012-12-051-51/+50
| | | | | | | | | | | | | | | | PHPBB3-11248
* | | | Merge PR #1101 branch 'develop-olympus' into developOleg Pudeyev2012-12-063-1/+181
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/11219] Coding guidelines and naming consistency changes [ticket/11219] Only update sequences that are affected by a fixture [ticket/11219] Recreate Oracle sequences instead of altering them [ticket/11219] Add unit test for inserting into a sequence column [ticket/11219] Update sequence values after loading fixtures
| * | | Merge PR #1101 branch 'Noxwizard/ticket/11219' into develop-olympusOleg Pudeyev2012-12-063-1/+181
| |\ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | * Noxwizard/ticket/11219: [ticket/11219] Coding guidelines and naming consistency changes [ticket/11219] Only update sequences that are affected by a fixture [ticket/11219] Recreate Oracle sequences instead of altering them [ticket/11219] Add unit test for inserting into a sequence column [ticket/11219] Update sequence values after loading fixtures
| | * | [ticket/11219] Coding guidelines and naming consistency changesPatrick Webster2012-12-052-12/+14
| | | | | | | | | | | | | | | | PHPBB3-11219
| | * | [ticket/11219] Only update sequences that are affected by a fixturePatrick Webster2012-12-012-36/+55
| | | | | | | | | | | | | | | | PHPBB3-11219
| | * | [ticket/11219] Recreate Oracle sequences instead of altering themPatrick Webster2012-11-201-53/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous method would always leave a gap between the last value and the new one due to how you have to update the sequence values. To remove gaps in all situations, the options are to alter the USER_SEQUENCES table or just drop the sequence and recreate it. The prior requires elevated priveleges and the latter can break attached objects. Since we don't attach objects to the sequences, we won't have any problems doing it for the tests. PHPBB3-11219
| | * | [ticket/11219] Add unit test for inserting into a sequence columnJoas Schilling2012-11-191-0/+55
| | | | | | | | | | | | | | | | PHPBB3-11219
| | * | [ticket/11219] Update sequence values after loading fixturesPatrick Webster2012-11-182-0/+139
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | If a value is provide for an auto_increment type of column, certain DBMSes do not update their internal sequencers. If a row is inserted later, it can be given an ID that is already in use, resulting in an error. The database test cases now resynchronise the sequencers before the tests are run. PHPBB3-11219
* | | Merge branch 'develop-olympus' into developAndreas Fischer2012-12-051-0/+74
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [ticket/10716] Collect standard error from executed php process. [ticket/10716] Skip test if php is not in PATH. [ticket/10716] Exclude our dependencies from linting. [ticket/10716] Only lint on php 5.3+. [ticket/10716] php parse all php files as part of the test suite.
| * | [ticket/10716] Collect standard error from executed php process.Oleg Pudeyev2012-12-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | php executes everything via a shell. The standard error of this top level shell is not captured by exec/shell_exec/popen/etc. and there is no way to capture it. proc_open might work but it is a nightmare to use and without multiplexing reads from standard error and standard output it can deadlock. Thus the solution in this commit. Put the command into a subshell and redirect standard error to standard output for the subshell. PHPBB3-10716
| * | [ticket/10716] Skip test if php is not in PATH.Oleg Pudeyev2012-12-041-0/+8
| | | | | | | | | | | | PHPBB3-10716
| * | [ticket/10716] Exclude our dependencies from linting.Oleg Pudeyev2012-12-041-1/+12
| | | | | | | | | | | | PHPBB3-10716
| * | [ticket/10716] Only lint on php 5.3+.Oleg Pudeyev2012-12-041-0/+5
| | | | | | | | | | | | PHPBB3-10716
| * | [ticket/10716] php parse all php files as part of the test suite.Oleg Pudeyev2012-12-041-0/+49
| |/ | | | | | | PHPBB3-10716
* | Merge remote-tracking branch 'p/ticket/10103' into developAndreas Fischer2012-12-041-0/+109
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p/ticket/10103: [ticket/10103] New and improved wording. [ticket/10103] Assert with messages. [ticket/10103] assertLessThan/assertGreaterThan. [ticket/10103] Inline assignment is bad? [ticket/10103] $rv had too few characters. [ticket/10103] Correct flock class documentation. [ticket/10103] Try a longer sleep for travis. [ticket/10103] Convert the rest of the tree to flock class. [ticket/10103] Test for flock lock class, with concurrency no less. [ticket/10103] Use flock lock class in messenger. [ticket/10103] Factor out flock lock class.
| * | [ticket/10103] Assert with messages.Oleg Pudeyev2012-12-041-2/+2
| | | | | | | | | | | | PHPBB3-10103
| * | [ticket/10103] assertLessThan/assertGreaterThan.Oleg Pudeyev2012-12-041-2/+2
| | | | | | | | | | | | PHPBB3-10103
| * | [ticket/10103] Inline assignment is bad?Oleg Pudeyev2012-12-041-1/+2
| | | | | | | | | | | | PHPBB3-10103
| * | [ticket/10103] Try a longer sleep for travis.Oleg Pudeyev2012-12-041-1/+1
| | | | | | | | | | | | | | | | | | Apparently travis takes longer than half a second to fork php. PHPBB3-10103
| * | [ticket/10103] Test for flock lock class, with concurrency no less.Oleg Pudeyev2012-12-041-0/+108
| | | | | | | | | | | | PHPBB3-10103
* | | Merge remote-tracking branch 'p/ticket/9983' into developAndreas Fischer2012-12-044-118/+33
|\ \ \ | | | | | | | | | | | | | | | | * p/ticket/9983: [ticket/9983] Make sql cache test into a black box.
| * | | [ticket/9983] Make sql cache test into a black box.Oleg Pudeyev2012-12-034-118/+33
| |/ / | | | | | | | | | | | | | | | | | | This makes it non-driver-specific and also makes it possible to make prefix variable private on drivers. PHPBB3-9983
* | | [ticket/9983] Correct incorrect markTestSkipped call.Oleg Pudeyev2012-12-041-1/+1
|/ / | | | | | | PHPBB3-9983
* | [ticket/9983] Also check generic APC enable/disable.Andreas Fischer2012-12-031-0/+6
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Use APC instead of apc in error messages.Andreas Fischer2012-12-031-1/+1
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Skip tests if APC is not enabled for CLI.Andreas Fischer2012-12-031-0/+6
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Test for apc cache driver.Oleg Pudeyev2012-12-031-0/+79
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Add phpbb prefix to global variables.Oleg Pudeyev2012-12-022-6/+6
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Indeed, it is <?php.Oleg Pudeyev2012-12-021-1/+1
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Add a test for destroy.Oleg Pudeyev2012-12-012-0/+29
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Exercise exists also.Oleg Pudeyev2012-12-011-1/+3
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Add a purge test.Oleg Pudeyev2012-12-012-0/+21
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Rename test methods.Oleg Pudeyev2012-12-013-3/+3
| | | | | | | | PHPBB3-9983
* | [ticket/9983] get/put cache test moved to a base class.Oleg Pudeyev2012-12-014-14/+40
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Create driver in setup in null driver test.Oleg Pudeyev2012-12-011-3/+10
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Split cache test into per-driver files.Oleg Pudeyev2012-12-014-208/+251
| | | | | | | | PHPBB3-9983
* | [ticket/9983] Add redis cache driver tests.Oleg Pudeyev2012-12-013-2/+100
| | | | | | | | | | | | | | | | | | | | | | In order to not overwrite data in default redis store, at least one of redis host or post must be explicitly specified. Redis cache driver constructor has been modified to accept host and port as parameters. This was not added to public API as there are more parameters being passed via global constants. PHPBB3-9983
* | Merge PR #974 branch 'bantu/ticket/10875' into developOleg Pudeyev2012-11-302-3/+39
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bantu/ticket/10875: [ticket/10875] tests/cache/cache_test.php: Use single quotes where possible. [ticket/10875] Test for null cache driver and sql cache. [ticket/10875] Revise sql cache test. [ticket/10875] Must return query result on failure. [ticket/10875] More documentation. [ticket/10875] Spelling fix. [ticket/10875] Add docblocks for phpbb_cache_driver_interface [ticket/10875] Add comment about cache's sql_load() method. [ticket/10875] Fix logic in phpbb_cache_driver_file::sql_save(). [ticket/10875] Fix phpbb_mock_cache::sql_save() to return $query_result. [ticket/10875] Fix return value of phpbb_cache_driver_null::sql_save(). [ticket/10875] Remove useless assignment from phpbb_cache_driver_memory.
| * | [ticket/10875] tests/cache/cache_test.php: Use single quotes where possible.Andreas Fischer2012-12-011-2/+2
| | | | | | | | | | | | PHPBB3-10875
| * | [ticket/10875] Test for null cache driver and sql cache.Oleg Pudeyev2012-11-301-0/+29
| | | | | | | | | | | | PHPBB3-10875
| * | [ticket/10875] Revise sql cache test.Oleg Pudeyev2012-11-301-4/+10
| | | | | | | | | | | | | | | | | | | | | Delete data from database before retrieving it from cache, ensuring results come from cache. PHPBB3-10875
| * | [ticket/10875] Fix phpbb_mock_cache::sql_save() to return $query_result.Andreas Fischer2012-10-301-0/+1
| | | | | | | | | | | | PHPBB3-10875
* | | Merge remote-tracking branch 'p/ticket/11202' into developAndreas Fischer2012-11-291-0/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | * p/ticket/11202: [ticket/11202] Fix comment char, use more descriptive comment. [ticket/11202] Add response assertions to file upload functional test.