Thiemo Kreuz
b6250d3791
Add missing test cases for ExtractFormatter
...
This is especially covering:
* The behavior on different kinds of HTML encoded characters.
* Trimming, or more precisely the fact that the formatter currently does
not do all the trimming. There is a trim() call in the test that should
not be there. This will be reworked in a following patch.
Additionally:
* Prefer strict assertSame() where possible.
* Remove two assertions that don't help making the test more safe.
* Utilize the new `// phpcs:…` syntax.
Change-Id: Ic361f2644300dcef3fc972a2dc2ae19ad34fa513
2019-03-19 17:58:32 +01:00
Max Semenik
0215eae3aa
Make ExtractFormatter not depend on configuration
...
Change-Id: I4e9a0947bf50d062ea28004bde30d2e8b18788a4
2019-03-17 18:02:09 -07:00
Thiemo Kreuz
9f99628c1f
Remove unused ParserOptions from ExtractFormatterTest
...
Change-Id: I685b468ad13da73b6273041f6ff068c2d8b730d0
2018-06-28 20:44:46 +02:00
Kunal Mehta
b463a99a79
Fix and add @covers tags
...
Change-Id: Ifa11ee418e016c103fb0ac6b32a790a2977aec8d
2018-01-23 14:54:12 -08:00
jenkins-bot
03de2f62b4
Merge "Don't repeat the default in test setup"
2017-12-01 04:36:15 +00:00
Pppery
d05f289032
Re-enable MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment sniff
...
Bug: T170580
Change-Id: Ib5bcab3414f44013cf57c0d006b212dea175473a
2017-11-29 23:07:30 -05:00
Brad Jorsch
6523ae42dd
Don't repeat the default in test setup
...
For a new ParserOptions object, ->setEditSection( true ) is already the
default. Since it's being deprecated in MediaWiki core change
Ied5fe1a61, just remove the call.
Change-Id: Id517a8746d4cc4b0b26a98a74244e4d8c711358c
2017-11-22 17:44:44 -05:00
Umherirrender
01376c8e05
Improve some parameter docs
...
Change-Id: Ie4326ecb517e5c7381b946b45bc108f8889fd4b2
2017-10-07 11:24:02 +02:00
Max Semenik
753fc03c10
Don't call ParserOuptut::setTOCEnabled()
...
It's not really needed. Add tests verifying that.
Bug: T168040
Change-Id: I49cf58d92620ad53dd833bc8ce0d2443a00b48e4
2017-07-24 17:55:06 -07:00
Umherirrender
93be5e75f6
Add phpcs and make pass
...
Change-Id: I2f95b3dfa260d955a5a420d0bf3c914382c09746
2017-05-19 18:39:27 +02:00
Max Semenik
21ef48483f
getFirstSentences(): don't use crazy regexes
...
Bug: T145231
Change-Id: I820fb152e86b273ddeba1617658a13e3a3f0bae3
2017-01-20 10:13:46 -08:00
Max Semenik
effb70aadd
Add HTML cutting tests
...
Change-Id: If1507ca9221eb1368cc5d5f52c3f3fd5264e8817
2017-01-20 00:18:09 +00:00
Max Semenik
fb2c163345
Uncomment and fix a test
...
Change-Id: I57facf073dd688f57f35a18015a0aa14b7b7f4c4
2017-01-19 16:16:35 -08:00
Max Semenik
abb0f4df96
getFirstChars(): don't use quantifiers with user-supplied count
...
Bug: T143178
Change-Id: Iba6d929156040f5388461aaf075644d8fbf647be
2017-01-10 17:42:14 -08:00
Max Semenik
264f65215b
Minor fixes
...
* Annotations
* Deprecated functions
* Namespace tests
Change-Id: I521f6af6074a454cec5322ab4cd46db08350c2c3
2016-09-22 18:51:12 -07:00
Max Semenik
754c9e4f19
CodeSniffer fixes
...
Change-Id: I8bdcd2250bd3163fe40ce4685eb04bffe53afdca
2016-09-22 18:38:27 -07:00
Reedy
ad435fb4e1
Remove 'UnitTestList' hook
...
No longer needed now that extension unittests are autodiscovered.
Bug: T142120
Bug: T142121
Change-Id: Iaff2e40a8bddfd5d45170b49641b8afa15987527
2016-08-23 14:54:47 +01:00