Platonides
8081138adb
Follow up r80376. Added missing file FORMAT.
...
Fixed method call in Preprocessor_Native.php.
Added support for tags containing spaces (r80025), following the same odd order dependant behavior as the php preprocessors.
Extensions shouldn't rely on it. See http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/51496
As a result of these changes, there is much less worst-case lookahead now.
in_array.{c,h} are now unused.
2011-01-17 19:54:44 +00:00
Platonides
a8dce135d9
Another couple of tests. Also passed by the NtPrepro :)
2011-01-16 18:20:44 +00:00
Platonides
0127c7c446
Add preprocessing tests
2011-01-15 08:35:56 +00:00
Platonides
5ceb97cfc3
Follow up r80025.
...
The space is actually used inside extensions, such as Maps, covertly called as 'display_map' into
Validator, then converted into 'display map' by getName().
2011-01-12 00:11:11 +00:00
Platonides
8f87d873fa
Add tests for parser tag hooks.
2011-01-11 18:37:15 +00:00
Chad Horohoe
38babb25b5
More silly whitespace
2011-01-10 18:43:59 +00:00
Chad Horohoe
c12dcf7101
rm big whitespace
2011-01-10 18:41:31 +00:00
Platonides
fa08f3be62
$messageMemc is used as local variable in line 63, function setUp
...
$messageMemc is used as local variable in line 74, function setUp
2011-01-05 23:54:07 +00:00
Sam Reed
da2c995df1
Remove unreachable return;
...
Add missing global $IP;
2011-01-03 03:40:26 +00:00
X!
9012b54101
Mark broken parser tests as broken
2011-01-03 02:49:52 +00:00
X!
1b4c6a0254
Fix r79447: Remove debugging code
2011-01-01 22:19:22 +00:00
Platonides
1cb56fc8e3
Remove unused globals
2011-01-01 22:16:58 +00:00
X!
27618d012b
Followup r79443: Add some form of organization to the test autoloader
2011-01-01 22:16:54 +00:00
X!
c667c3f1be
Reorder functions around, add some form of order to the test suite.
...
It'd be nice to break some of these functions out to another class, but then again,
I'd also like to see Windows actually become stable, MediaWiki to become fully class based,
and Google to stop taking over the world. We can't all have what we want.
2011-01-01 20:57:13 +00:00
X!
2b8f832da8
Add fuzz tests to new parser tests (someone else should make sure this works as expected)
2011-01-01 18:10:28 +00:00
X!
37279160f3
Don't use the --verbose option anymore
2011-01-01 17:05:08 +00:00
X!
332e01addf
Add parsertest specific help to PHPUnit.php
2011-01-01 06:49:00 +00:00
X!
f8d74604fd
More work on new parser tests:
...
-No need to specify a new function for each argument, use PHP5 magic to automatically set it
-Create (g|s)etCliArg() functions
-Implement some features from the old parser tests
2011-01-01 05:53:04 +00:00
X!
34fc833407
Start work on porting ParserTests completely into PHPunit.
...
Disable temporary tables, a few reports of them not working. The tables get deleted anyway, so why risk it?
2011-01-01 03:39:37 +00:00
Platonides
c3dfabcf6d
This global declaration is now unused.
2010-12-30 16:19:10 +00:00
X!
194ab8bb57
Self-reverting my reversion of r79154 in r79158. The old version is flawed and broken beyond belief. At least this version works.
2010-12-29 16:40:31 +00:00
Platonides
3aa8a1d61a
Replace the global $additionalMWCLIArgs with a class variable.
...
Provide a default value for verbose since it is checked regardless of existance.
2010-12-29 16:24:59 +00:00
X!
05c6b53899
Partial revert of r79154. hexmode asserts that these work, even though I keep getting OK (0 tests, 0 assertions)
2010-12-29 03:35:17 +00:00
X!
edbf743aeb
Make MediaWikiParserTest work now in PHPUnit. There are still a few bugs, such as stopping tests if one fails,
...
lack of fuzz testing and other parser test options, and the DB creation is still a little flaky.
A MediaWikiPHPUnitCommand class had to be created to allow for custom CLI parameters.
2010-12-29 02:23:51 +00:00
Chad Horohoe
447529064b
* verbose and color default output from phpunit
...
* Make a bunch of tests subclass MediaWikiTestCase
* Parser tests and ResourceLoaderTest can't subclass it yet due to various issues
2010-12-28 18:17:16 +00:00
Chad Horohoe
5f528203aa
Rename MediaWikiTestSetup to MediaWikiTestCase: this is going to be the base class for all unit tests from now on
2010-12-28 17:45:33 +00:00
Chad Horohoe
65652a6f33
Fix path changes from move in r78383
2010-12-14 16:33:06 +00:00
Chad Horohoe
23f69f10ed
Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. They're not strictly maintenance scripts, and some people want to do a selective checkout that doesn't include the tests. There's still debate on whether we should include these in the release downloads, but we had a pretty firm consensus to move this.
2010-12-14 16:26:35 +00:00