aboutsummaryrefslogtreecommitdiffstats
path: root/tests/class_loader
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-271-3/+7
| | | | PHPBB3-12594
* [ticket/12503] All tests should extend \phpbb_test_caseJoas Schilling2014-05-051-1/+1
| | | | PHPBB3-12503
* [ticket/11700] Fix extension loading with namespacesNils Adermann2013-09-191-12/+12
| | | | | | | class loader now expects all classes to be prefixed with a backslash when resolving paths PHPBB3-11700
* [ticket/11700] Correctly load extensions with nonprefixed namespacesNils Adermann2013-09-171-2/+2
| | | | PHPBB3-11700
* [ticket/11700] Fix class loader tests for namespacesNils Adermann2013-09-166-32/+28
| | | | PHPBB3-11700
* [ticket/11700] Move all recent code to namespacesNils Adermann2013-09-161-3/+3
| | | | PHPBB3-11700
* [ticket/11698] Moving all autoloadable files to phpbb/Nils Adermann2013-07-146-5/+5
| | | | PHPBB3-11698
* [ticket/11335] (tests) Make php_ext 'php' not '.php'Nathan Guse2013-04-241-2/+2
| | | | PHPBB3-11335
* [ticket/10973] Drop all require_once for mocks. Use autoloading.Andreas Fischer2012-07-081-2/+0
| | | | PHPBB3-10973
* [ticket/9916] Updating license in non-distributed filesUnknown2012-01-021-1/+1
| | | | PHPBB3-9916
* [feature/extension-manager] The class loader no longer knows about extensionsNils Adermann2011-09-292-22/+30
| | | | | | | Instead the class loader is instantiated twice. Once with the phpbb_ prefix and once with the phpbb_ext_ prefix. PHPBB3-10323
* [feature/extension-manager] Extension Manager & FinderNils Adermann2011-09-292-2/+13
| | | | | | | Extensions RFC: http://area51.phpbb.com/phpBB/viewtopic.php?f=84&t=41499 Ticket: http://tracker.phpbb.com/browse/PHPBB3-10323 PHPBB3-10323
* [ticket/10011] Tests can't be ran on PHP < 5.3Erik Frèrejean2011-01-311-3/+3
| | | | | | Apply the `__DIR__` fix to some remaining Ascraeus tests PHPBB3-10011
* [task/acm-refactor] Cleaning up left over mentions of ACM and fixing tests.Nils Adermann2011-01-092-86/+6
| | | | PHPBB3-9983
* [task/acm-refactor] Refactor the ACM classes to have a common interface.Igor Wiedler2011-01-092-6/+57
| | | | | | | | | | 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-091-0/+12
| | | | PHPBB-9979
* Merge branch 'develop-olympus' into developIgor Wiedler2011-01-072-47/+4
| | | | | | | | | | | 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
* [ticket/9556] Drop php closing tags, add trailing newlineIgor Wiedler2010-11-111-1/+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
* [feature/auto-loading] Add test case for phpbb_dir2 =>Igor Wiedler2010-08-312-0/+11
| | | | | | includes/dir2/dir2.php PHPBB3-9682
* [feature/auto-loading] Only check subdir if there is another name part.Nils Adermann2010-08-192-0/+12
| | | | PHPBB3-9682
* [feature/auto-loading] Added a phpBB autoloader with caching support.Nils Adermann2010-07-056-0/+153
phpBB class name lookups follow these rules: - All classes are prefixed with phpbb_ - All classes reside in includes/ or a subdirectory thereof - Directories must not contain underscores - The class name is separated into parts by underscores, the parts are checked from first to last, until one is found which is not a directory, all remaining parts make up the file name. If no parts are left, the last directory name is used. Examples: directory structure: includes/ class_name.php dir/ class_name.php dir.php subdir/ class_name.php lookups: phpbb_class_name -> includes/class_name.php phpbb_dir_class_name -> includes/dir/class_name.php phpbb_dir -> includes/dir/dir.php phpbb_dir_subdir_class_name -> includes/dir/subdir/class_name.php Optionally the class can be supplied with a cache instance, either in the constructor or via set_cache() at a later time. This allows for the lookups to be cached, so the directories do not have to be traveresed on every request. This makes it necessary for the cache and its dependency to continue to be loaded the old way - without autoloading. The code will not be changed to use autoloading, but it will rather only be used for new classes where applicable. PHPBB3-9682