https://bugzilla.wikimedia.org/show_bug.cgi?id=30841
Web browser: ---
Bug #: 30841
Summary: development of unit tests for FormatJson.php versus
PHP built-in json_encode() json_decode()
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Unit tests
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Suggested is to
"... use some tests to make sure that the output from Services_Json and
json_{en,de}code are identical."
Enhancement bug filed for an issue in the mailinglist discussion "[Wikitech-l]
Re quests about log system":
> - json in php requires a mess of code and potentially a 3rd party
> libraries because:
> -- the bulit-in json json_{en,de}code library functions may not be installed
> -- the bulit-in json library in some cases actually has a bug that makes
> it encode/decode json incorrectly
>
Well, that's why we have the FormatJson wrapper. Could use some tests
to make sure that the output from Services_Json and json_{en,de}code
are identical. I'm whipping up some trivial ones now.
[1]
http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/55429
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l