wiki.techinc.nl/tests/phpunit/includes/GlobalFunctions
Timo Tijhof 48d715148b Use MediaWikiTestCase methods for tempdir in unit tests
* Use MediaWikiTestCase::getNewTempFile and getNewTempDirectory
  instead of wfTempDir().

  The upload api tests wrote a tempnam() file directly (where
  wfTempDir() is typically shared with other systems and concurrent
  runs). Use MediaWikiTestCase::getNewTempFile and
  getNewTempDirectory instead.

  This also ensures its removal by the teardown handler without
  needing manual unlink() calls. And it doesn't rely on the test
  passing. (Many unlink calls where at the bottom of tests,
  which wouldn't be reached in case of failure).

* For the upload test, the presistent storing of
  'Oberaargletscher_from_Oberaar.jpg' (downloaded from Commons)
  was removed. Note that this didn't work for Jenkins builds anyway
  as Jenkins builds set $wgTmpDirectory to a unique directory
  in tmpfs associated with an individual build.

* For filebackend tests, moved directory creation from the dataProvider
  to the main test.

  Implemented addTmpFiles() to allow subclasses to register
  additional files (created by other means) to be cleaned up also.

  Removed unused $tmpName and $toPath parameters in data
  provider for FileBackendTest::testStore. And fixed weird double
  $op2 variable name to be called $op3.

* Skipped parserTest.inc, MockFileBackend.php, and
  UploadFromUrlTestSuite.php as those don't use MediaWikiTestCase.

Change-Id: Ic7feb06ef0c1006eb99485470a1a59419f972545
2015-02-11 03:49:02 +00:00
..
GlobalTest.php Use MediaWikiTestCase methods for tempdir in unit tests 2015-02-11 03:49:02 +00:00
GlobalWithDBTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
README
wfAppendQueryTest.php Add test cases for wfAppendQuery 2014-09-29 22:56:21 +00:00
wfAssembleUrlTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfBaseConvertTest.php wfBaseConvert(): Work around PHP Bug #50175 2014-09-02 16:02:27 -04:00
wfBaseNameTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfBCP47Test.php Each line in a doc block should start with * 2014-07-24 10:08:16 +02:00
wfExpandUrlTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfGetCallerTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfParseUrlTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfRemoveDotSegmentsTest.php Cleanup some docs (tests) 2014-08-11 20:06:52 +02:00
wfShellExecTest.php Fix race condition in wfShellExec() 2014-07-21 23:21:23 -07:00
wfShorthandToIntegerTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfThumbIsStandardTest.php Account for HiDPI variants in thumb.php rate limiting 2015-02-04 19:55:44 -08:00
wfTimestampTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00
wfUrlencodeTest.php Mark relevant tests with @group GlobalFunctions 2014-07-20 23:36:10 +00:00

This directory hold tests for includes/GlobalFunctions.php file
which is a pile of functions.