| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |/
|
|
|
|
|
|
| |
Due to the usage of `__DIR__` for the file includes the tests can't
be ran on systems with PHP < 5.3. Replace all occurances of
`__DIR__` with `dirname(__FILE__)`.
PHPBB3-10011
|
| |
|
|
| |
PHPBB3-9732
|
| |
|
|
| |
PHPBB3-9732
|
| |
|
|
|
|
|
|
|
|
|
| |
Two first simple tests to check functionality of session_begin and
session_create.
Added a mock class for the cache as well as a subclass of session
which has its cookie handling function mocked out to avoid header
sending problems.
PHPBB3-9732
|
| |
|
|
|
|
|
|
|
| |
Rename $unicode to $unicode_support, pass in $use_unicode defaulting to true.
In unit tests we can now pass in $use_unicode as false and also test the code
path that is taken when PCRE does not support unicode.
PHPBB3-9933
|
| |
|
|
| |
PHPBB3-9990
|
| |
|
|
| |
PHPBB3-9990
|
| |
|
|
| |
PHPBB3-9987
|
| |
|
|
| |
PHPBB3-9981
|
| |
|
|
| |
PHPBB3-9933
|
| |
|
|
|
|
|
|
|
|
|
| |
The blacklisting of these static variables is necessary because code coverage
will otherwise consume too much memory. The problem did not exist in earlier
PHPUnit versions because all classes beginning with PHPUnit are automatically
blacklisted, and code coverage as well as a few other internal classes were
still internal parts of PHPunit. These were now moved to PHP_ namespace,
causing the problem with backupStaticAttributes.
PHPBB3-9967
|
| |
|
|
| |
PHPBB3-9967
|
| |
|
|
| |
PHPBB3-9967
|
| |
|
|
|
|
|
| |
SELECT is based on the user table fixture, write (INSERT/UPDATE/DELETE) is
tested using the config table fixture.
PHPBB3-9868
|
| |
|
|
| |
PHPBB3-9868
|
| |
|
|
| |
PHPBB3-9868
|
| |
|
|
|
|
|
| |
This is a first step to simplify the extraction of database specific code
parts into separate classes.
PHPBB3-9868
|
| |
|
|
|
|
|
|
|
| |
To allow execution of the tests with different configurations without having
to use the test_config.php file, environment variables of the form
PHPBB_TEST_<name> can now be used, e.g. PHPBB_TEST_DBMS to set the variables
otherwise expected in test_config.php
PHPBB3-9868
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Tests are run with sqlite by default now anyway, so in the majority of cases
the error message explaining how to set up database test running will not be
displayed anyway. Database tests are now generally simply skipped if no
configuration can be found. The RUNNING_TESTS.txt file explains how to set
them up however, and more info is available on the wiki.
The get_database_config method was moved from test_case_helpers to
database_test_case because it has no general purpose.
PHPBB3-9868
|
| |
|
|
|
|
|
|
| |
Calling initialisation to then use the member directly seems more
complicated than just having a method that returns the instance or
creates it if necessary.
PHPBB3-9868
|
| |
|
|
| |
PHPBB3-9855
|
| |
|
|
| |
PHPBB3-9855
|
| |
|
|
| |
PHPBB3-9825
|
| |
|
|
| |
PHPBB3-9592
|
| |
|
|
|
|
| |
They failed under SQLite because SQLite accepts empty IN() syntax.
PHPBB3-9592
|
| |
|
|
| |
PHPBB3-9592
|
| |
|
|
| |
PHPBB3-9780
|
| |
|
|
|
|
|
| |
Tests for existing and non-existing records of the types:
MX, A, AAAA, NS, CNAME, TXT
PHPBB3-9599
|
| |
|
|
| |
PHPBB3-9599
|
| |\
| |
| |
| |
| |
| | |
* ticket/ckwalsh/9715:
[ticket/9715] Better email regex
[ticket/9715] Extend email unit tests
|
| | |
| |
| |
| |
| |
| | |
Adding more email tests for a wider range of valid email formats.
PHPBB3-9715
|
| |\ \
| | |
| | |
| | |
| | | |
* ticket/bantu/9714:
[ticket/9714] Use correct variable name in email regular expression tests.
|
| | |/
| |
| |
| | |
PHPBB3-9714
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |\
| |
| |
| |
| | |
* ticket/p/9593:
[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
|
| |\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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.
|
| | | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | | |
| | |
| | |
| | | |
PHPBB3-9626
|
| | |/
| |
| |
| |
| |
| | |
Adding tests for the IPv6 regular expression returned by get_preg_expression()
PHPBB3-9626
|
| | |
| |
| |
| |
| |
| | |
resolved a bug caused by a missing order-by.
PHPBB3-9625
|
| | |
| |
| |
| | |
PHPBB3-9625
|
| | |
| |
| |
| | |
PHPBB3-9625
|
| | |
| |
| |
| | |
PHPBB3-9625
|
| | |
| |
| |
| | |
PHPBB3-9625
|
| |/
|
|
| |
PHPBB3-9625
|
| | |
|