Nils Adermann
e195c91b1d
[ticket/9855] Make tests run under PHPUnit 3.5.
...
PHPBB3-9855
2010-10-17 23:10:49 +02:00
Andreas Fischer
ac753fa853
[ticket/9825] Unit tests: Use sqlite when possible and no test_config exists.
...
PHPBB3-9825
2010-09-16 00:03:52 +02:00
Igor Wiedler
a4742f795e
[ticket/9592] Slight adjustments to simplify db test cases
...
PHPBB3-9592
2010-09-15 09:50:04 +02:00
Igor Wiedler
566ddf8a4b
[ticket/9592] Remove test cases for empty IN()
...
They failed under SQLite because SQLite accepts empty IN() syntax.
PHPBB3-9592
2010-09-12 00:51:27 +02:00
Igor Wiedler
4fd45adfc5
[ticket/9592] Test suite does not run on SQlite
...
PHPBB3-9592
2010-09-11 23:34:14 +02:00
Andreas Fischer
e09d6c6d71
[ticket/9780] Adding unit tests for gen_rand_string().
...
PHPBB3-9780
2010-08-20 21:36:56 +02:00
Andreas Fischer
4707b0c18e
[ticket/9599] Adding tests for phpbb_checkdnsrr().
...
Tests for existing and non-existing records of the types:
MX, A, AAAA, NS, CNAME, TXT
PHPBB3-9599
2010-08-03 10:50:41 +02:00
Andreas Fischer
3e111bb41a
[ticket/9599] Adding network function tests.
...
PHPBB3-9599
2010-08-03 10:50:41 +02:00
Andreas Fischer
da256b33d9
Merge branch 'ticket/ckwalsh/9715' into develop-olympus
...
* ticket/ckwalsh/9715:
[ticket/9715] Better email regex
[ticket/9715] Extend email unit tests
2010-07-12 01:56:00 +02:00
Andreas Fischer
d869fc9804
Merge branch 'ticket/bantu/9714' into develop-olympus
...
* ticket/bantu/9714:
[ticket/9714] Use correct variable name in email regular expression tests.
2010-07-12 01:55:52 +02:00
Cullen Walsh
a0b9f7806a
[ticket/9715] Extend email unit tests
...
Adding more email tests for a wider range of valid email formats.
PHPBB3-9715
2010-07-11 16:20:27 -07:00
Nils Adermann
bbc3105466
[ticket/9701] Prevent notices from being hidden by template tests
...
The template tests disable NOTICEs for the duration of template execution since
the current version of the template engine does not generate sufficiently clean
code. The error level is reset aftwards, however that part is skipped when
trigger_error is called which is converted into a regular exception by PHPUnit
and passed down until caught. Such exceptions are now caught to reset the error
level, and then the exception is rethrown.
This uncovered another issue in the template tests which only passed because
NOTICEs were unintentionally disabled at this point. assign_display is also
required to operate without NOTICEs. The respective code has been added around
its callee as well. However no handling of exceptions takes place there. If
another test checking for errors in that function is ever added similar catch
logic will have to be added there.
PHPBB3-9701
2010-07-08 22:46:28 +02:00
Andreas Fischer
c6c4d01fe9
[ticket/9714] Use correct variable name in email regular expression tests.
...
PHPBB3-9714
2010-07-08 20:26:50 +02:00
Andreas Fischer
7a0b554724
Merge branch 'ticket/p/9593' into develop-olympus
...
* ticket/p/9593:
[ticket/9593] A readme file for unit tests and running unit tests.
2010-07-08 20:00:26 +02:00
Oleg Pudeyev
030f9c03c6
[ticket/9593] A readme file for unit tests and running unit tests.
...
Added a readme file explaining prerequisites for unit tests, and how to run
unit tests.
PHPBB3-9593
2010-07-07 16:10:13 +02:00
Andreas Fischer
876a6e4686
Merge branch 'ticket/bantu/9626' into develop-olympus
...
* ticket/bantu/9626:
[ticket/9626] Adding tests for the URL regular expression.
[ticket/9626] Add missing class prefix.
[ticket/9626] A few tests for the email regular expression.
[ticket/9626] More IPv6 regex tests.
[ticket/9626] Adding tests for the IPv4 regular expression.
[ticket/9626] Adding tests for regular expressions.
2010-06-17 18:50:41 +02:00
Joas Schilling
ef69f22698
[feature/dbal-tests] Follow the coding guidelines and ...
...
resolved a bug caused by a missing order-by.
PHPBB3-9625
2010-06-17 16:06:17 +02:00
Joas Schilling
e3420de295
[feature/dbal-tests] Update data
...
PHPBB3-9625
2010-06-17 16:06:10 +02:00
Joas Schilling
d9c2e6cbcf
[feature/dbal-tests] Multi insert
...
PHPBB3-9625
2010-06-17 16:06:10 +02:00
Joas Schilling
c4b0814c62
[feature/dbal-tests] Delete data
...
PHPBB3-9625
2010-06-17 16:06:10 +02:00
Joas Schilling
539ae0ffaf
[feature/dbal-tests] Insert data
...
PHPBB3-9625
2010-06-17 16:06:10 +02:00
Joas Schilling
b03a7a2c83
[feature/dbal-tests] Fix SQL-ERROR: invalid input syntax for integer: ""
...
PHPBB3-9625
2010-06-17 16:06:10 +02:00
Andreas Fischer
aaaa4f9abe
[ticket/9626] Adding tests for the URL regular expression.
...
PHPBB3-9626
2010-05-25 12:08:52 +02:00
Andreas Fischer
646b16f5db
[ticket/9626] Add missing class prefix.
...
PHPBB3-9626
2010-05-25 12:08:51 +02:00
Andreas Fischer
6a5ad05d8a
[ticket/9626] A few tests for the email regular expression.
...
PHPBB3-9626
2010-05-25 12:08:51 +02:00
Andreas Fischer
12e92fc45e
[ticket/9626] More IPv6 regex tests.
...
PHPBB3-9626
2010-05-25 12:08:51 +02:00
Andreas Fischer
1c59f3dbd0
[ticket/9626] Adding tests for the IPv4 regular expression.
...
PHPBB3-9626
2010-05-25 12:08:51 +02:00
Andreas Fischer
222173adae
[ticket/9626] Adding tests for regular expressions.
...
Adding tests for the IPv6 regular expression returned by get_preg_expression()
PHPBB3-9626
2010-05-25 12:08:51 +02:00
Andreas Fischer
4a2a84d7a2
[feature/dbal-tests] Remove hardcoded 'mysql' from PDO DSN in DBAL test.
2010-04-02 18:28:40 +02:00
Andreas Fischer
e9de68f9a3
[feature/dbal-tests] Fix mysql (not mysqli) dbal test.
...
Correctly determine MySQL version from the database.
2010-04-02 18:28:06 +02:00
Nils Adermann
2bbfa9c29f
[feature/dbal-tests] Only output the missing config error message once.
...
The error message was also not properly escaping the variables, thus
producing an incorrect example configuration file.
2010-04-01 19:15:34 +02:00
Nils Adermann
53ab8886b1
[feature/dbal-tests] Make the PDO prefix depend on the dbms.
...
The database base test will need a few more changes to run on all the
databases we support. But those really need to be made on a system where
they run and can be tested. Patches welcome!
2010-04-01 19:08:11 +02:00
Nils Adermann
23beaceadd
[feature/dbal-tests] Fix whitespace and line endings.
2010-04-01 18:59:26 +02:00
Joas Schilling
53d316dc9e
[feature/dbal-tests] Make some tests for build_array_data on SELECT
2010-03-27 10:42:09 +01:00
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
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
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