aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | [ticket/10011] Tests don't work on PHP < 5.3Erik Frèrejean2011-01-3118-33/+33
|/ | | | | | | | 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
* [task/session-tests] Renamed assertSqlResultEquals and fixed its param orderNils Adermann2011-01-211-1/+1
| | | | PHPBB3-9732
* [task/session-tests] Test additional combinations of session_begin.Nils Adermann2011-01-201-12/+46
| | | | PHPBB3-9732
* [task/session-tests] Added tests for the session class.Nils Adermann2011-01-208-1/+344
| | | | | | | | | | | 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
* [ticket/9933] Add $use_unicode parameter to get_censor_preg_expression().Andreas Fischer2011-01-161-2/+12
| | | | | | | | | 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
* [ticket/9990] Add docs for running slow testsIgor Wiedler2011-01-121-0/+9
| | | | PHPBB3-9990
* [ticket/9990] Integrate utf normalizer tests into test suiteIgor Wiedler2011-01-113-0/+321
| | | | PHPBB3-9990
* [ticket/9987] Rename test files to include a _test suffixIgor Wiedler2011-01-1014-0/+0
| | | | PHPBB3-9987
* [ticket/9981] Fix unit test dependenciesIgor Wiedler2011-01-072-0/+2
| | | | PHPBB3-9981
* [ticket/9933] Create unit test for word censor regular expression.rxu2011-01-071-0/+40
| | | | PHPBB3-9933
* [task/phpunit-xml] Manually blacklisting a few PHPUnit classes from backups.Nils Adermann2011-01-072-0/+30
| | | | | | | | | | | 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
* [task/phpunit-xml] Force error reporting level E_ALL | ~E_DEPRECATED.Nils Adermann2011-01-071-0/+2
| | | | PHPBB3-9967
* [task/phpunit-xml] Use phpunit.xml for test suiteIgor Wiedler2011-01-0431-500/+40
| | | | PHPBB3-9967
* [task/mssql-db-tests] Split up database tests into SELECT and write operationsNils Adermann2010-10-255-178/+200
| | | | | | | SELECT is based on the user table fixture, write (INSERT/UPDATE/DELETE) is tested using the config table fixture. PHPBB3-9868
* [task/mssql-db-tests] PHPUnit output got stuck after unterminated ob_start.Nils Adermann2010-10-251-0/+1
| | | | PHPBB3-9868
* [task/mssql-db-tests] Add support for odbc & sqlsrv PDO test connectionsNils Adermann2010-10-251-6/+94
| | | | PHPBB3-9868
* [task/mssql-db-tests] Refactored getConnection into multiple smaller parts.Nils Adermann2010-10-251-51/+84
| | | | | | | This is a first step to simplify the extraction of database specific code parts into separate classes. PHPBB3-9868
* [task/mssql-db-tests] Allow test configuration with environment variables.Nils Adermann2010-10-252-2/+19
| | | | | | | | | 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
* [task/mssql-db-tests] No longer display an error when skipping db tests.Nils Adermann2010-10-253-76/+70
| | | | | | | | | | | | | 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
* [task/mssql-db-tests] Use a simple getter for test case helpers.Nils Adermann2010-10-252-10/+10
| | | | | | | | 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
* [ticket/9855] Do not include the PHPUnit Framework manually on 3.5+.Nils Adermann2010-10-171-2/+6
| | | | PHPBB3-9855
* [ticket/9855] Make tests run under PHPUnit 3.5.Nils Adermann2010-10-171-1/+8
| | | | PHPBB3-9855
* [ticket/9825] Unit tests: Use sqlite when possible and no test_config exists.Andreas Fischer2010-09-161-11/+26
| | | | PHPBB3-9825
* [ticket/9592] Slight adjustments to simplify db test casesIgor Wiedler2010-09-151-11/+8
| | | | PHPBB3-9592
* [ticket/9592] Remove test cases for empty IN()Igor Wiedler2010-09-121-2/+3
| | | | | | They failed under SQLite because SQLite accepts empty IN() syntax. PHPBB3-9592
* [ticket/9592] Test suite does not run on SQliteIgor Wiedler2010-09-111-11/+47
| | | | PHPBB3-9592
* [ticket/9780] Adding unit tests for gen_rand_string().Andreas Fischer2010-08-203-0/+105
| | | | PHPBB3-9780
* [ticket/9599] Adding tests for phpbb_checkdnsrr().Andreas Fischer2010-08-032-0/+67
| | | | | | | Tests for existing and non-existing records of the types: MX, A, AAAA, NS, CNAME, TXT PHPBB3-9599
* [ticket/9599] Adding network function tests.Andreas Fischer2010-08-032-0/+38
| | | | PHPBB3-9599
* Merge branch 'ticket/ckwalsh/9715' into develop-olympusAndreas Fischer2010-07-121-0/+41
|\ | | | | | | | | | | * ticket/ckwalsh/9715: [ticket/9715] Better email regex [ticket/9715] Extend email unit tests
| * [ticket/9715] Extend email unit testsCullen Walsh2010-07-111-1/+42
| | | | | | | | | | | | Adding more email tests for a wider range of valid email formats. PHPBB3-9715
* | Merge branch 'ticket/bantu/9714' into develop-olympusAndreas Fischer2010-07-121-1/+1
|\ \ | | | | | | | | | | | | * ticket/bantu/9714: [ticket/9714] Use correct variable name in email regular expression tests.
| * | [ticket/9714] Use correct variable name in email regular expression tests.Andreas Fischer2010-07-081-1/+1
| |/ | | | | | | PHPBB3-9714
* | [ticket/9701] Prevent notices from being hidden by template testsNils Adermann2010-07-081-3/+21
|/ | | | | | | | | | | | | | | | | | 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
* Merge branch 'ticket/p/9593' into develop-olympusAndreas Fischer2010-07-081-0/+33
|\ | | | | | | | | * ticket/p/9593: [ticket/9593] A readme file for unit tests and running unit tests.
| * [ticket/9593] A readme file for unit tests and running unit tests.Oleg Pudeyev2010-07-071-0/+33
| | | | | | | | | | | | | | Added a readme file explaining prerequisites for unit tests, and how to run unit tests. PHPBB3-9593
* | Merge branch 'ticket/bantu/9626' into develop-olympusAndreas Fischer2010-06-176-0/+375
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
| * | [ticket/9626] Adding tests for the URL regular expression.Andreas Fischer2010-05-252-0/+36
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] Add missing class prefix.Andreas Fischer2010-05-254-6/+6
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] A few tests for the email regular expression.Andreas Fischer2010-05-252-0/+80
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] More IPv6 regex tests.Andreas Fischer2010-05-251-4/+62
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] Adding tests for the IPv4 regular expression.Andreas Fischer2010-05-252-0/+74
| | | | | | | | | | | | PHPBB3-9626
| * | [ticket/9626] Adding tests for regular expressions.Andreas Fischer2010-05-253-0/+127
| |/ | | | | | | | | | | Adding tests for the IPv6 regular expression returned by get_preg_expression() PHPBB3-9626
* | [feature/dbal-tests] Follow the coding guidelines and ...Joas Schilling2010-06-171-50/+88
| | | | | | | | | | | | resolved a bug caused by a missing order-by. PHPBB3-9625
* | [feature/dbal-tests] Update dataJoas Schilling2010-06-171-0/+42
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Multi insertJoas Schilling2010-06-171-0/+26
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Delete dataJoas Schilling2010-06-171-0/+30
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Insert dataJoas Schilling2010-06-171-0/+34
| | | | | | | | PHPBB3-9625
* | [feature/dbal-tests] Fix SQL-ERROR: invalid input syntax for integer: ""Joas Schilling2010-06-171-16/+8
|/ | | | PHPBB3-9625
* [feature/dbal-tests] Remove hardcoded 'mysql' from PDO DSN in DBAL test.Andreas Fischer2010-04-021-1/+1
|