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