Added a MemoryFileBackend class and made MockFileBackend subclass it
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 19 Dec 2013 01:41:02 +0000 (17:41 -0800)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 19 Dec 2013 20:38:00 +0000 (12:38 -0800)
commit9ee2b6f7fc05496fd063bd4e183d9340ed8c0cce
treedbf5cfac36f753736e5e01302592ea63183c47f4
parent0fba444861f80e0dcc4a85f306b4df0436c19d3d
Added a MemoryFileBackend class and made MockFileBackend subclass it

* This backend passes all filebackend and parser tests
* Fixed setupUploads() in parser tests to just use create() instead
  of using store() and having a race condition in the process
* Fixed 'use-filebackend=' for Parser tests

bug: 58094
Change-Id: Ib0c38183cb7f9f2325da98c8a8a1eb2b8e39a7aa
includes/AutoLoader.php
includes/filebackend/MemoryFileBackend.php [new file with mode: 0644]
tests/phpunit/includes/parser/NewParserTest.php
tests/phpunit/mocks/filebackend/MockFileBackend.php