Joas Schilling
147d6fd590
[feature/dbal-tests] Make some tests for return_on_error on SELECT-queries
2010-03-26 23:27:49 +01:00
Joas Schilling
c6442ce640
[feature/dbal-tests] Tests for $db->sql_query_limit()
2010-03-26 21:02:56 +01:00
Nils Adermann
d702dba75e
Merge branch 'develop-olympus' into develop
...
* develop-olympus:
[develop-olympus] Make this test run on windows with backslash-paths.
[bug/56965] Redirect fails with directory traversal
[bug/58685] Correct spelling errors in append_sid() comments.
[bug/58025] Search robots are now redirected if they send a SID in the request
2010-03-26 18:28:48 +01:00
Joas Schilling
a7581085e0
[feature/dbal-tests] Load phpbb-schema after creating the connection to the database
2010-03-26 17:37:01 +01:00
Joas Schilling
af654814f6
[feature/dbal-tests] Added tests for dbal fetchrow and fetchfield.
2010-03-26 16:41:19 +01:00
Joas Schilling
94bc65e203
[feature/dbal-tests] Added database test & refactored test framework
...
There is now a phpbb_database_test_case which can be used as a base class for tests that require database access. You have to set up a test_config.php file in your tests/ directory containing host, user, pass etc.
Extra test functionality has been moved to phpbb_test_case_helpers to provide the same functionality in database tests and regular tests without duplicating the code. This is achieved through delegation of method calls.
2010-03-26 16:39:37 +01:00
Joas Schilling
c71b1245ec
[develop-olympus] Make this test run on windows with backslash-paths.
2010-03-26 14:46:18 +01:00
Nils Adermann
d1e8f6a0d3
[develop] Failed to merge the template test properly.
...
The feature branch for the new template engine should probably
contain all the deleted tests as well. We should look into the
incompatibilities and try to stay backwards compatible.
2010-03-10 16:48:06 +01:00
Nils Adermann
2ed9d7878e
Merge branch 'develop-olympus' into develop
...
Conflicts:
tests/all_tests.php
tests/request/all_tests.php
tests/request/request_var.php
tests/security/all_tests.php
tests/security/extract_current_page.php
tests/security/redirect.php
tests/template/all_tests.php
tests/template/template.php
tests/template/templates/define.html
tests/template/templates/expressions.html
tests/template/templates/if.html
tests/template/templates/includephp.html
tests/template/templates/loop.html
tests/template/templates/loop_advanced.html
tests/template/templates/loop_vars.html
tests/test_framework/framework.php
tests/test_framework/phpbb_test_case.php
tests/text_processing/all_tests.php
tests/text_processing/make_clickable.php
tests/utf/all_tests.php
tests/utf/utf8_clean_string_test.php
tests/utf/utf8_wordwrap_test.php
2010-03-10 16:43:42 +01:00
Nils Adermann
60bd1edcb5
[develop-olympus] Backported 3.1 unit tests to 3.0.
...
Start adding unit tests for bugs you fix! Tests for anything are
welcome really. We have to work on these a lot.
2010-03-10 16:24:19 +01:00
Meik Sievertsen
8243e9a372
adjust tests a little bit to let them work again in trunk (not adjusted template/bbcode yet)
...
git-svn-id: file:///svn/phpbb/trunk@10212 89ea8834-ac86-4346-8a33-228a782c2dd0
2009-10-05 16:15:54 +00:00
Chris Smith
2839f3a964
Fix most of the template test suite :)
...
git-svn-id: file:///svn/phpbb/trunk@9588 89ea8834-ac86-4346-8a33-228a782c2dd0
2009-06-13 20:23:07 +00:00
Chris Smith
79f2dedb51
Remove cache files after each test, ensure they are not included in the coverage report
...
git-svn-id: file:///svn/phpbb/trunk@9181 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-12-07 02:26:47 +00:00
Chris Smith
c48f64ce94
Should not be needed, unlink() should clear sthe cache and this was never the problem anyway
...
git-svn-id: file:///svn/phpbb/trunk@9180 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-12-07 02:11:12 +00:00
Chris Smith
f49fe16766
Fixed :D
...
git-svn-id: file:///svn/phpbb/trunk@9142 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-12-01 16:37:52 +00:00
Chris Smith
d57b4d0b48
Test empty filename and invalid handle
...
git-svn-id: file:///svn/phpbb/trunk@9119 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-25 00:50:21 +00:00
Chris Smith
de51ec8a15
Test empty filename
...
git-svn-id: file:///svn/phpbb/trunk@9118 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-25 00:46:22 +00:00
Chris Smith
7b5dc8f3c5
Test missing files
...
git-svn-id: file:///svn/phpbb/trunk@9117 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-25 00:42:32 +00:00
Chris Smith
c95f0c7935
- Add template variable S_BLOCK_NAME
...
- Modify template::alter_block_array() so it supports modification of nested blocks
- Add (incomplete) tests for template::alter_block_array()
git-svn-id: file:///svn/phpbb/trunk@9116 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-25 00:31:32 +00:00
Chris Smith
332521a369
- Make a start on completing the phpDoc comments for the template engine
...
- Tidy template engine code, mainly PHP5 stuff, made some methods void instead of just returning true
- Add tests for the remaining untested compilation code
git-svn-id: file:///svn/phpbb/trunk@9115 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-24 21:59:33 +00:00
Nils Adermann
81c44f8351
- added a PHPUnit version check
...
git-svn-id: file:///svn/phpbb/trunk@9112 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-24 13:41:39 +00:00
Chris Smith
f816e67c36
Test is (even|odd) by y
...
git-svn-id: file:///svn/phpbb/trunk@9110 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-24 11:46:28 +00:00
Nils Adermann
21573a8473
- updating all tests to use new framework
...
git-svn-id: file:///svn/phpbb/trunk@9106 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-24 00:29:58 +00:00
Nils Adermann
0b11951412
- adding tests for the new request class and extending the tests for request_var to include deep direct access to multidimensional arrays and arbitrary number of dimensions
...
git-svn-id: file:///svn/phpbb/trunk@9105 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-24 00:28:57 +00:00
Nils Adermann
c8cba06910
- updated security/redirect test to use new framework functionality
...
git-svn-id: file:///svn/phpbb/trunk@9104 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-24 00:27:18 +00:00
Nils Adermann
bcfcf9b048
- added phpBB test framework which is an extension with some additional
...
functionality of PHPUnit
- first addition: setExpectedTriggerError() if a test expects a call
to trigger_error().
git-svn-id: file:///svn/phpbb/trunk@9103 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-24 00:24:46 +00:00
Chris Smith
6e2d2f85b5
More tests
...
git-svn-id: file:///svn/phpbb/trunk@9100 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-23 22:39:31 +00:00
Chris Smith
500eb05c48
test advanced loop constructs
...
git-svn-id: file:///svn/phpbb/trunk@9099 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-23 19:51:52 +00:00
Chris Smith
3f11fc12ac
S_NUM_ROWS gives you the number of rows in a block
...
git-svn-id: file:///svn/phpbb/trunk@9098 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-23 16:07:36 +00:00
Chris Smith
dcf0b15c9f
Will he ever be happy? ...
...
git-svn-id: file:///svn/phpbb/trunk@9094 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-23 03:50:16 +00:00
Chris Smith
ff22d7a368
Refactor and fix :)
...
git-svn-id: file:///svn/phpbb/trunk@9093 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-23 03:41:54 +00:00
Chris Smith
f4c079a62b
Run template tests over non-cached data as well
...
git-svn-id: file:///svn/phpbb/trunk@9092 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-23 01:55:12 +00:00
Chris Smith
d26f38c4e0
all 557 tests pass now :D
...
git-svn-id: file:///svn/phpbb/trunk@9091 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-23 01:08:08 +00:00
Chris Smith
416270ee77
- Deprecate S_ROW_COUNT use S_ROW_NUM
...
- S_ROW_NUM, S_FIRST_ROW, S_LAST_ROW are now using internal template engine variables saving memory
- Other small changes
- Update of template tests
git-svn-id: file:///svn/phpbb/trunk@9087 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-22 23:53:40 +00:00
Nils Adermann
efe06af913
- merge r9084 and r9085
...
- added tests for make_clickable
git-svn-id: file:///svn/phpbb/trunk@9086 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-11-22 23:25:57 +00:00
Chris Smith
69cfb5b821
Initial template tests, a bit hackish currently, excuse the rushed nature of this commit got to catch a train :)
...
git-svn-id: file:///svn/phpbb/trunk@9020 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-10-15 16:21:27 +00:00
Meik Sievertsen
6a59f3efd6
fix security test for redirect. Also set common server variables to mimick a real testbed.
...
git-svn-id: file:///svn/phpbb/trunk@8623 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-06-08 21:43:27 +00:00
Meik Sievertsen
e8e807f797
adding missing props
...
git-svn-id: file:///svn/phpbb/trunk@8588 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-06-04 11:06:51 +00:00
Meik Sievertsen
59e6bc27f1
erm, no, not yet. :P
...
git-svn-id: file:///svn/phpbb/trunk@8586 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-06-03 16:32:49 +00:00
Meik Sievertsen
7591a84c0d
two new tests, added security suite and fixed utf8 tests.
...
git-svn-id: file:///svn/phpbb/trunk@8584 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-06-03 16:15:01 +00:00
Nils Adermann
6871e7caa4
- adding request_var tests
...
git-svn-id: file:///svn/phpbb/trunk@8549 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-05-04 22:54:16 +00:00
Nils Adermann
1219ff4717
these files should have headers too
...
git-svn-id: file:///svn/phpbb/trunk@8547 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-05-04 15:41:51 +00:00
Nils Adermann
22f6e1ed1e
- adding a test for utf8_clean_string()
...
git-svn-id: file:///svn/phpbb/trunk@8546 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-05-04 14:47:54 +00:00
Nils Adermann
771fd3696d
adding a bbcode test suite
...
git-svn-id: file:///svn/phpbb/trunk@8541 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-05-04 12:54:47 +00:00
Nils Adermann
b1915b6f25
expectation goes first
...
git-svn-id: file:///svn/phpbb/trunk@8540 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-05-04 12:49:20 +00:00
Nils Adermann
378838499e
Going further with our attempt to make phpBB more stable: Testing with PHPUnit
...
git-svn-id: file:///svn/phpbb/trunk@8539 89ea8834-ac86-4346-8a33-228a782c2dd0
2008-05-04 12:04:08 +00:00