gnu-social/tests
Mikael Nordfeldth 2a4dc77a63 The overloaded DB_DataObject function staticGet is now called getKV
I used this hacky sed-command (run it from your GNU Social root, or change the first grep's path to where it actually lies) to do a rough fix on all ::staticGet calls and rename them to ::getKV

   sed -i -s -e '/DataObject::staticGet/I!s/::staticGet/::getKV/Ig' $(grep -R ::staticGet `pwd`/* | grep -v -e '^extlib' | grep -v DataObject:: |grep -v "function staticGet"|cut -d: -f1 |sort |uniq)

If you're applying this, remember to change the Managed_DataObject and Memcached_DataObject function definitions of staticGet to getKV!

This might of course take some getting used to, or modification fo StatusNet plugins, but the result is that all the static calls (to staticGet) are now properly made without breaking PHP Strict Standards. Standards are there to be followed (and they caused some very bad confusion when used with get_called_class)

Reasonably any plugin or code that tests for the definition of 'GNUSOCIAL' or similar will take this change into consideration.
2013-08-18 13:13:56 +02:00
..
atompub Move AtomPubClient to its own module 2011-07-25 23:15:32 -04:00
oauth Fix option settings on oauth_post_notice.php 2010-10-20 16:16:00 -07:00
sample-uploads Enhanced upload file type detection. If given an original filename, we'll attempt to detect type from the extension if we were unable to make a definitive match from content. Generic octet-stream, zip, and MS Office type are explicitly singled out for re-checks, which fixes OpenOffice and MS Office documents to come up with the proper types when misdetected. 2010-06-28 08:59:47 -07:00
ActivityGenerationTests.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
ActivityParseTests.php test to check that Bookmark related links are appearing correctly 2011-05-30 10:04:25 -04:00
CommandInterperterTest.php CommandInterpreter test cases to guard against regressions 2011-02-21 12:12:10 -08:00
CurryTest.php PHP 5.3 closure-based implementation of curry(); old implementation used as fallback for older PHP versions. Added unit tests to confirm they both work! 2009-12-16 09:27:48 -05:00
HashTagDetectionTests.php Test cases for Unicode hashtags 2011-02-25 10:25:13 -08:00
JidValidateTest.php Ticket #1281: JID validation now more or less follows spec instead of calling e-mail validator 2010-03-30 17:35:27 -07:00
LocationTest.php Renaming GeonamesPlugin::NAMESPACE to GeonamesPlugin::LOCATION_NS to avoid parse errors; 'namespace' is a reserved keyword in PHP 5.3 and later. 2009-11-17 16:56:43 -08:00
MediaFileTest.php Enhanced upload file type detection. If given an original filename, we'll attempt to detect type from the extension if we were unable to make a definitive match from content. Generic octet-stream, zip, and MS Office type are explicitly singled out for re-checks, which fixes OpenOffice and MS Office documents to come up with the proper types when misdetected. 2010-06-28 08:59:47 -07:00
NicknameTest.php Fix up edge case in nickname processing: overlong display forms should be rejected before normalization (storage of display forms will also have fields with limited length) 2010-12-30 17:11:16 -08:00
oEmbedTest.php Switch from oohembed to noembed for default oembed provider 2011-09-30 19:51:23 +00:00
TagURITest.php Add a library to mint tag URIs 2010-02-20 13:23:08 -05:00
URLDetectionTest.php Test case for ticket #2248: flickr URLs with @ in the path get misinterpreted as mailto 2011-02-25 15:38:24 -08:00
UserFeedParseTest.php Some initial media parsing 2010-03-22 18:55:17 -07:00
UserRightsTest.php The overloaded DB_DataObject function staticGet is now called getKV 2013-08-18 13:13:56 +02:00
UUIDTest.php Make sure the UUIDs are unique too :) 2010-12-30 13:37:05 -08:00