aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch 'develop-olympus' into developNils Adermann2011-01-124-0/+330
|\ \ | |/ | | | | | | | | | | | | | | * develop-olympus: [ticket/9990] Add docs for running slow tests [ticket/9990] Integrate utf normalizer tests into test suite Conflicts: phpunit.xml.dist
| * [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
* | [task/config-class] Correctly merge cached config with dynamically loaded data.Nils Adermann2011-01-121-0/+11
| | | | | | | | PHPBB3-9988
* | [task/config-class] Fix db config constructor param orderIgor Wiedler2011-01-111-6/+6
| | | | | | | | PHPBB3-9988
* | [task/config-class] Implemented a config class to replace the global array.Nils Adermann2011-01-104-0/+253
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is a phpbb_config class which simply holds an array and does not persist any data. It implements ArrayAccess, Countable and IteratorAggregate to allow regular use of configuration as if it was still an array. The phpbb_config_db class depends on an instance of the dbal and a cache driver. It obtains the configuration data from cache and database as necessary and persists data to the database. The functions set_config and set_config_count remain for backward compatability but they only call methods on the new config class now instead of directly manipulating the database and cache. PHPBB3-9988
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-1021-3/+2
|\ \ | |/ | | | | This merge commit includes ascraeus-specific renames and adjustments.
| * [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
* | [task/acm-refactor] Cleaning up left over mentions of ACM and fixing tests.Nils Adermann2011-01-095-74/+43
| | | | | | | | PHPBB3-9983
* | [task/acm-refactor] Refactor the ACM classes to have a common interface.Igor Wiedler2011-01-095-7/+137
| | | | | | | | | | | | | | | | | | | | They are now refered to as cache drivers rather than ACM classes. The additional utility functions from the original cache class have been moved to the cache_service. The class loader is now instantiated without a cache instance and passed one as soon as it is constructed to allow autoloading the cache classes. PHPBB3-9983
* | [ticket/9979] Support autoloading in unit testsIgor Wiedler2011-01-097-16/+16
| | | | | | | | PHPBB-9979
* | [ticket/9981] Fix unit test dependenciesIgor Wiedler2011-01-092-0/+2
| | | | | | | | PHPBB3-9981
* | Merge branch 'develop-olympus' into developAndreas Fischer2011-01-071-0/+40
|\ \ | |/ | | | | | | | | | | | | | | | | * develop-olympus: [ticket/9933] Create unit test for word censor regular expression. [ticket/9933] Move word censor regex into separate function in functions.php [ticket/9933] Wrong handling consecutive multiple asterisks in word censor Conflicts: phpBB/includes/cache.php
| * [ticket/9933] Create unit test for word censor regular expression.rxu2011-01-071-0/+40
| | | | | | | | PHPBB3-9933
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-0743-672/+97
|\ \ | |/ | | | | | | | | | | | | | | | | | | This commit also ports all ascraeus tests to the new format. Conflicts: tests/all_tests.php tests/network/all_tests.php tests/request/all_tests.php tests/request/request_var.php tests/template/templates/includephp.html
| * [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
* | [ticket/9746] Added PHP implementation of inet_pton and inet_ntop.Marek A. Ruszczyński2011-01-031-5/+18
| | | | | | | | PHPBB3-9746
* | [ticket/9746] Adding unit tests for inet_ntop() and inet_pton().Andreas Fischer2011-01-032-0/+44
| | | | | | | | PHPBB3-9746
* | [ticket/9746] Adding tests for phpbb_ip_normalise().Andreas Fischer2011-01-032-0/+67
| | | | | | | | PHPBB3-9746
* | Merge branch 'feature/igorw/request-class' into developAndreas Fischer2010-12-161-1/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | * feature/igorw/request-class: [feature/request-class] Convert some remaining cookies [feature/request-class] Adjust misleading comment [feature/request-class] Remove direct access to _REQUEST in acp_search [feature/request-class] Special case of direct access to _REQUEST
| * | [feature/request-class] Adjust misleading commentIgor Wiedler2010-10-171-1/+1
| | | | | | | | | | | | PHPBB3-9716
* | | [ticket/9556] Drop php closing tags, add trailing newlineIgor Wiedler2010-11-113-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closing tags converted using Oleg's script. remove-php-end-tags.py -a . Trailing newlines added using the following where $ext is file extension. find . -type f -name "*.$ext" -print | xargs printf "e %s\nw\n" | ed -s; Extensions: php, css, html, js, xml. PHPBB3-9556
* | | Merge branch 'develop-olympus' into developAndreas Fischer2010-11-038-305/+459
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * develop-olympus: [task/mssql-db-tests] Remove MS SQL helper values from SELECT LIMIT results. [task/mssql-db-tests] Split up database tests into SELECT and write operations [task/mssql-db-tests] PHPUnit output got stuck after unterminated ob_start. [task/mssql-db-tests] sql_query_limit must return all results when total = 0 [task/mssql-db-tests] Add support for odbc & sqlsrv PDO test connections [task/mssql-db-tests] Refactored getConnection into multiple smaller parts. [task/mssql-db-tests] Allow test configuration with environment variables. [task/mssql-db-tests] No longer display an error when skipping db tests. [task/mssql-db-tests] Use a simple getter for test case helpers. Conflicts: tests/template/template.php
| * | [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/9627] Prefix function names with 'phpbb_'.Andreas Fischer2010-10-231-4/+4
| | | | | | | | | | | | PHPBB3-9627
* | | [ticket/9627] Adding unit tests for http_byte_range().Andreas Fischer2010-10-232-0/+66
| | | | | | | | | | | | PHPBB3-9627
* | | [ticket/9627] Adding download unit tests.Andreas Fischer2010-10-232-0/+38
| | | | | | | | | | | | PHPBB3-9627
* | | Merge branch 'develop-olympus' into developIgor Wiedler2010-10-172-3/+14
|\ \ \ | |/ / | | / | |/ |/| | | * develop-olympus: [ticket/9855] Do not include the PHPUnit Framework manually on 3.5+. [ticket/9855] Make tests run under PHPUnit 3.5.
| * [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
* | [feature/request-class] Make additional request test cases runIgor Wiedler2010-09-301-3/+4
| | | | | | | | PHPBB3-9716
* | [feature/request-class] Prevent recursive_set_var from applying ↵Igor Wiedler2010-09-191-0/+21
| | | | | | | | | | | | htmlspecialchars twice PHPBB3-9716
* | [feature/request-class] Refactor request classes to use autoloadingIgor Wiedler2010-09-174-5/+6
| | | | | | | | | | | | | | | | | | All class names have been adjusted to use a phpbb_request prefix, allowing them to be autoloaded. Also introduces some improvements to autoloading in general. PHPBB3-9716
* | [feature/request-class] Request class test now uses a type cast helper mock.Nils Adermann2010-09-171-2/+4
| | | | | | | | | | | | | | | | Removed the dependency of the request class test on having an actual phpbb_type_cast_helper instance, by replacing it with an object mocking the phpbb_type_cast_helper_interface. PHPBB3-9716
* | [feature/request-class] Refactored request class and wrapper functions.Nils Adermann2010-09-174-16/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The request class - now makes use of the new type cast helper (dependency injection) - has no static methods anymore. - now has a constructor argument to leave super globals turned on Brought back the set_var function in functions.php. It is now a wrapper around the type cast helper. It creates an instance on the fly. The request_var wrapper function now has an optional last argument to inject the request class instance, rather than abusing the $var_name. PHPBB3-9716
* | [feature/request-class] Extracted type casting helpers from the request class.Nils Adermann2010-09-171-0/+33
| | | | | | | | | | | | | | | | These methods should be available without having to instantiate a request class object, better separation of concerns. A set_var wrapper around this class no longer requires a request object at all. PHPBB3-9716
* | [feature/request-class] New request class supports recursive arrays.Nils Adermann2010-09-171-2/+1
| | | | | | | | | | | | | | So we can enable this old 3 level deep array input entry in the request_var data provider, it is now also supported! PHPBB3-9716
* | [feature/request-class] Adding a request class based on ascraeus-experiment.Nils Adermann2010-09-175-74/+121
| | | | | | | | | | | | | | | | | | | | | | | | The well known request_var function is now a wrapper that calls a method on a phpbb_request object. The class provides additional functionality. It can replace all super globals with special objects that throw errors when being accessed. They still allow isset operations to keep backward compatibility with isset($_POST['var']) checks. The phpbb_request class implements the phpbb_request_interface which is available for easy mocking of input in tests. PHPBB3-9716
* | Merge branch 'develop-olympus' into developIgor Wiedler2010-09-161-11/+26
|\ \ | |/ | | | | | | | | * develop-olympus: [ticket/9825] Add unit test config and db to gitignore [ticket/9825] Unit tests: Use sqlite when possible and no test_config exists.
| * [ticket/9825] Unit tests: Use sqlite when possible and no test_config exists.Andreas Fischer2010-09-161-11/+26
| | | | | | | | PHPBB3-9825
* | Merge branch 'develop-olympus' into developAndreas Fischer2010-09-152-15/+49
|\ \ | |/ | | | | | | | | | | * develop-olympus: [ticket/9592] Slight adjustments to simplify db test cases [ticket/9592] Remove test cases for empty IN() [ticket/9592] Test suite does not run on SQlite