Last modified: 2012-11-11 13:23:39 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43833, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41833 - Write tests for AutoLoader
Write tests for AutoLoader
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
unspecified
All All
: Unprioritized major (vote)
: Future release
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-06 20:08 UTC by Krinkle
Modified: 2012-11-11 13:23 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Krinkle 2012-11-06 20:08:54 UTC
Verify that all entries in the autoloader are correct, that:
* The file exists
* The file does in fact define this class
(if possible)
* The file defines no other classes (except those also listed in AutoLoader and pointing to this file).


Reason: I8a0c4d42d8e4e7a80a5155ad8b1dd51c73dc3f05
Comment 1 Antoine "hashar" Musso (WMF) 2012-11-06 20:12:23 UTC
Another way: parse all the PHP files, find out all the class we have and then ask the autoloader to resolve the names :-]
Comment 2 Antoine "hashar" Musso (WMF) 2012-11-06 20:12:51 UTC
ccing IAlex that detected an autoload error recently.
Comment 3 Alexandre Emsenhuber [IAlex] 2012-11-06 20:22:44 UTC
I simply use maintenance/checkAutoLoader.php...
Comment 4 Krinkle 2012-11-07 00:02:05 UTC
Great.
Comment 5 Krinkle 2012-11-07 01:31:54 UTC
Change-Id: I0a307f23175d52345180cdfc7c2d5e172536be1b
Comment 6 db [inactive,noenotif] 2012-11-11 13:23:39 UTC
Status Merged

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links