User:😂/zend-phpunit

chad@sexy /www/mediawiki/core/tests/phpunit (master)$ php phpunit.php PHPUnit 3.7.23 by Sebastian Bergmann.

Configuration read from /www/mediawiki/core/tests/phpunit/suite.xml

.............................................................  61 / 7142 (  0%) .............................................................  122 / 7142 (  1%) .............................................................  183 / 7142 (  2%) .............................................................  244 / 7142 (  3%) .............................................................  305 / 7142 (  4%) .............................................................  366 / 7142 (  5%) .............................................................  427 / 7142 (  5%) .............................................................  488 / 7142 (  6%) .............................................................  549 / 7142 (  7%) .............................................................  610 / 7142 (  8%) .............................................................  671 / 7142 (  9%) .............................................................  732 / 7142 ( 10%) .............................................................  793 / 7142 ( 11%) .............................................................  854 / 7142 ( 11%) .............................................................  915 / 7142 ( 12%) .............................................................  976 / 7142 ( 13%) ............................................................. 1037 / 7142 ( 14%) ............................................................. 1098 / 7142 ( 15%) ............................................................. 1159 / 7142 ( 16%) ............................................................. 1220 / 7142 ( 17%) ............................................................. 1281 / 7142 ( 17%) ............................................................. 1342 / 7142 ( 18%) ............................................................. 1403 / 7142 ( 19%) ............................................................. 1464 / 7142 ( 20%) ............................................................. 1525 / 7142 ( 21%) ................E............................................ 1586 / 7142 ( 22%) ............................................................. 1647 / 7142 ( 23%) ............................................................. 1708 / 7142 ( 23%) ............................................................. 1769 / 7142 ( 24%) ............................................................. 1830 / 7142 ( 25%) ............................................................. 1891 / 7142 ( 26%) ............................................................. 1952 / 7142 ( 27%) ............................................................. 2013 / 7142 ( 28%) .................................F........................... 2074 / 7142 ( 29%) ....................F........................................ 2135 / 7142 ( 29%) ............................................................. 2196 / 7142 ( 30%) ............................................................. 2257 / 7142 ( 31%) ............................................................. 2318 / 7142 ( 32%) ....I.I.......................................I.............. 2379 / 7142 ( 33%) ............................................................. 2440 / 7142 ( 34%) ............................................................. 2501 / 7142 ( 35%) ............................................................. 2562 / 7142 ( 35%) ............................................................. 2623 / 7142 ( 36%) ............................................................. 2684 / 7142 ( 37%) ...........................................S................. 2745 / 7142 ( 38%) ............................................................. 2806 / 7142 ( 39%) ............................................................. 2867 / 7142 ( 40%) ............................................................. 2928 / 7142 ( 40%) ............................................................. 2989 / 7142 ( 41%) ............................................................. 3050 / 7142 ( 42%) ............................................................. 3111 / 7142 ( 43%) ............................................................. 3172 / 7142 ( 44%) ............................................................. 3233 / 7142 ( 45%) ............................................................. 3294 / 7142 ( 46%) ............................................................. 3355 / 7142 ( 46%) ............................................................. 3416 / 7142 ( 47%) ............................................................. 3477 / 7142 ( 48%) ............................................................. 3538 / 7142 ( 49%) ............................................................. 3599 / 7142 ( 50%) ............................................................. 3660 / 7142 ( 51%) ............................................................. 3721 / 7142 ( 52%) ............................................................. 3782 / 7142 ( 52%) ........E.................................................... 3843 / 7142 ( 53%) ............................................................. 3904 / 7142 ( 54%) ............................................................. 3965 / 7142 ( 55%) ............................................................. 4026 / 7142 ( 56%) ............................................................. 4087 / 7142 ( 57%) ............................................................. 4148 / 7142 ( 58%) ............................................................. 4209 / 7142 ( 58%) ............................................................. 4270 / 7142 ( 59%) ..........................F.................................. 4331 / 7142 ( 60%) ............................................................. 4392 / 7142 ( 61%) ............................................................. 4453 / 7142 ( 62%) ............................................................. 4514 / 7142 ( 63%) ............................................................. 4575 / 7142 ( 64%) ............................................................. 4636 / 7142 ( 64%) ............................................................. 4697 / 7142 ( 65%) ............................................................. 4758 / 7142 ( 66%) ............................................................. 4819 / 7142 ( 67%) ............................................................. 4880 / 7142 ( 68%) ............................................................. 4941 / 7142 ( 69%) ............................................................. 5002 / 7142 ( 70%) ............................................................. 5063 / 7142 ( 70%) ............................................................. 5124 / 7142 ( 71%) ............................................................. 5185 / 7142 ( 72%) ............................................................. 5246 / 7142 ( 73%) ............................................................. 5307 / 7142 ( 74%) ............................................................. 5368 / 7142 ( 75%) ............................................................. 5429 / 7142 ( 76%) .................................SSSSSSSSS................... 5490 / 7142 ( 76%) ............................................................. 5551 / 7142 ( 77%) ............................................................. 5612 / 7142 ( 78%) ............................................................. 5673 / 7142 ( 79%) ............................................................. 5734 / 7142 ( 80%) ............................................................. 5795 / 7142 ( 81%) ............................................................. 5856 / 7142 ( 81%) ............................................................. 5917 / 7142 ( 82%) ............................................................. 5978 / 7142 ( 83%) ............................................................. 6039 / 7142 ( 84%) ............................................................. 6100 / 7142 ( 85%) ............................................................. 6161 / 7142 ( 86%) ...S......................................................... 6222 / 7142 ( 87%) ............................................................. 6283 / 7142 ( 87%) ............................................................. 6344 / 7142 ( 88%) ............................................................. 6405 / 7142 ( 89%) ............................................................. 6466 / 7142 ( 90%) ............................................................. 6527 / 7142 ( 91%) ............................................................. 6588 / 7142 ( 92%) ............................................................. 6649 / 7142 ( 93%) ............................................................. 6710 / 7142 ( 93%) ............................................................. 6771 / 7142 ( 94%) ............................................................. 6832 / 7142 ( 95%) ............................................................. 6893 / 7142 ( 96%) ............................................................. 6954 / 7142 ( 97%) ............................................................. 7015 / 7142 ( 98%) .......................

Time: 2.63 minutes, Memory: 457.25Mb

There were 2 errors:

1) RequestContextTest::testImportScopedSession session_write_close: open(/tmp/d/6/sess_d612ee607c87e749ef14da4983a702cd, O_RDWR) failed: No such file or directory (2)

/www/mediawiki/core/includes/context/RequestContext.php:451 /www/mediawiki/core/includes/context/RequestContext.php:483 /www/mediawiki/core/includes/ScopedCallback.php:70 /www/mediawiki/core/tests/phpunit/includes/RequestContextTest.php:60 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

2) ParserTests::testParserTest with data set #31 ('Italics and bold: multiple quote sequences: (2,4,2)', '\'\'foo\'\'\'\'bar\'\, ' foo\'bar'' ', , ) filesize: stat failed for /var/folders/hd/zbglthvd7n59swtnqv_b_7q80000gn/T//Foobar.svg

/www/mediawiki/core/includes/filebackend/FileBackendStore.php:161 /www/mediawiki/core/includes/filebackend/FileBackendStore.php:1051 /www/mediawiki/core/includes/filebackend/FileBackend.php:561 /www/mediawiki/core/includes/filebackend/FileBackend.php:581 /www/mediawiki/core/includes/filebackend/FileBackend.php:609 /www/mediawiki/core/tests/phpunit/includes/parser/NewParserTest.php:457 /www/mediawiki/core/tests/phpunit/includes/parser/NewParserTest.php:386 /www/mediawiki/core/tests/phpunit/includes/parser/NewParserTest.php:584 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

--

There were 3 failures:

1) TitlePermissionTest::testUserBlock Failed asserting that two arrays are equal. --- Expected +++ Actual @@ @@ Array ( 0 => Array (        0 => 'autoblockedtext'         1 => 'Useruser'         2 => 'no reason given' -        3 => '127.0.0.1' +        3 => '192.0.2.0'         4 => 'Useruser'         5 => null         6 => 'infinite'         7 => '127.0.8.1'         8 => '18:03, 4 October 2013'     ) )

/www/mediawiki/core/tests/phpunit/includes/TitlePermissionTest.php:701 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

2) TitleTest::testGetpageviewlanguage with data set #11 ('zh-cn', 'Help:I_need_somebody', 'zh', 'zh-tw', 'zh-cn') Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'zh-cn' +'zh'

/www/mediawiki/core/tests/phpunit/includes/TitleTest.php:375 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

3) ParserTests::testParserTest with data set #537 ('pre-save transform: Signature expansion', '* pre-save transform: Signature expansion Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'* 127.0.0.1 -* 127.0.0.1 -* 127.0.0.1 -* 127.0.0.1 ' +'* 192.0.2.0 +* 192.0.2.0 +* 192.0.2.0 +* 192.0.2.0 '
 * ', '* 127.0.0.1
 * 127.0.0.1
 * 127.0.0.1
 * 127.0.0.1 ', 'pst', '')
 * 127.0.0.1
 * 127.0.0.1 ', 'pst', '')

/www/mediawiki/core/tests/phpunit/includes/parser/NewParserTest.php:662 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

--

There were 3 incomplete tests:

1) ApiEditPageTest::testEditSection not yet implemented

/www/mediawiki/core/tests/phpunit/includes/api/ApiEditPageTest.php:197 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

2) ApiEditPageTest::testUndo not yet implemented

/www/mediawiki/core/tests/phpunit/includes/api/ApiEditPageTest.php:240 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

3) ApiWatchTest::testWatchDelete This test needs to verify the deleted article was added to the users watchlist

/www/mediawiki/core/tests/phpunit/includes/api/ApiWatchTest.php:165 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

--

There were 11 skipped tests:

1) DatabaseTest::testStoredFunctions MySQL or Postgres required

/www/mediawiki/core/tests/phpunit/includes/db/DatabaseTest.php:207 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

2) LanguageGvTest::testGetPluralRuleType with data set #0 ('Form 4', 0) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

3) LanguageGvTest::testGetPluralRuleType with data set #1 ('Form 2', 1) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

4) LanguageGvTest::testGetPluralRuleType with data set #2 ('Form 3', 2) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

5) LanguageGvTest::testGetPluralRuleType with data set #3 ('Form 4', 3) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

6) LanguageGvTest::testGetPluralRuleType with data set #4 ('Form 1', 20) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

7) LanguageGvTest::testGetPluralRuleType with data set #5 ('Form 2', 21) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

8) LanguageGvTest::testGetPluralRuleType with data set #6 ('Form 3', 22) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

9) LanguageGvTest::testGetPluralRuleType with data set #7 ('Form 4', 23) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

10) LanguageGvTest::testGetPluralRuleType with data set #8 ('Form 4', 50) This test won't work since convertPlural for gv doesn't seem to actually follow our plural rules.

/www/mediawiki/core/tests/phpunit/languages/LanguageGvTest.php:20 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

11) LanguageTest::testKnownCldrLanguageTag The LanguageNames class is not available. The cldr extension is probably not installed.

/www/mediawiki/core/tests/phpunit/languages/LanguageTest.php:474 /www/mediawiki/core/tests/phpunit/MediaWikiTestCase.php:116 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:80 /www/mediawiki/core/tests/phpunit/MediaWikiPHPUnitCommand.php:64

FAILURES! Tests: 7038, Assertions: 836770, Failures: 3, Errors: 2, Incomplete: 3, Skipped: 11.