Some of the PHPUnit tests are failing locally.
When running the following inside the VM:
sudo -u www-data php5 /vagrant/mediawiki/tests/phpunit/phpunit.php /vagrant/mediawiki/extensions/Flow/tests/phpunit
I get the below output. I'm not sure if this is related to the PHPUnit version discrepancy (locally MWV has PHPUnit 4.6.2), or what.
1 | vagrant@mediawiki-vagrant:~$ sudo -u www-data php5 /vagrant/mediawiki/tests/phpunit/phpunit.php /vagrant/mediawiki/extensions/Flow/tests/phpunit |
---|---|
2 | PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/20-xhprof.ini on line 2 in Unknown on line 0 |
3 | PHPUnit 4.6.2 by Sebastian Bergmann and contributors. |
4 | |
5 | Configuration read from /vagrant/mediawiki/tests/phpunit/suite.xml |
6 | |
7 | Deprecated configuration setting "strict" used |
8 | |
9 | ..........................................S..........S......... 63 / 472 ( 13%) |
10 | .S............................................................. 126 / 472 ( 26%) |
11 | ...........SS.....SSSS......................................... 189 / 472 ( 40%) |
12 | ...................................................EF.......... 252 / 472 ( 53%) |
13 | ............................................................... 315 / 472 ( 66%) |
14 | ............................................................... 378 / 472 ( 80%) |
15 | ....................................EEEEEEEEEEEE............... 441 / 472 ( 93%) |
16 | ............................... |
17 | |
18 | Time: 3.9 minutes, Memory: 99.75Mb |
19 | |
20 | There were 13 errors: |
21 | |
22 | 1) Flow\Tests\NotifiedUsersTest::testWatchingTopic |
23 | Flow\Import\ImportException: No active thread! |
24 | |
25 | /vagrant/mediawiki/extensions/Flow/includes/Import/Postprocessor/LqtNotifications.php:89 |
26 | /vagrant/mediawiki/extensions/Flow/includes/Import/Postprocessor/LqtNotifications.php:76 |
27 | /vagrant/mediawiki/extensions/Echo/controller/NotificationController.php:273 |
28 | /vagrant/mediawiki/extensions/Echo/controller/NotificationController.php:290 |
29 | /vagrant/mediawiki/extensions/Echo/controller/NotificationController.php:79 |
30 | /vagrant/mediawiki/extensions/Echo/model/Event.php:146 |
31 | /vagrant/mediawiki/extensions/Flow/includes/Notifications/Controller.php:151 |
32 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Notifications/NotifiedUsersTest.php:42 |
33 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
34 | |
35 | 2) Flow\Tests\UrlGeneratorTest::testBoardLink with data set #0 (Title Object (...), 'updated', true) |
36 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
37 | |
38 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:55 |
39 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
40 | |
41 | 3) Flow\Tests\UrlGeneratorTest::testBoardLink with data set #1 (Title Object (...), 'updated', false) |
42 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
43 | |
44 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:55 |
45 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
46 | |
47 | 4) Flow\Tests\UrlGeneratorTest::testBoardLink with data set #2 (Title Object (...), 'created', true) |
48 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
49 | |
50 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:55 |
51 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
52 | |
53 | 5) Flow\Tests\UrlGeneratorTest::testBoardLink with data set #3 (Title Object (...), 'created', false) |
54 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
55 | |
56 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:55 |
57 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
58 | |
59 | 6) Flow\Tests\UrlGeneratorTest::testWatchTopicLink with data set #0 (Title Object (...), Flow\Model\UUID Object (...)) |
60 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
61 | |
62 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:96 |
63 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
64 | |
65 | 7) Flow\Tests\UrlGeneratorTest::testWatchTopicLink with data set #1 (Title Object (...), Flow\Model\UUID Object (...)) |
66 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
67 | |
68 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:96 |
69 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
70 | |
71 | 8) Flow\Tests\UrlGeneratorTest::testWatchTopicLink with data set #2 (Title Object (...), Flow\Model\UUID Object (...)) |
72 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
73 | |
74 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:96 |
75 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
76 | |
77 | 9) Flow\Tests\UrlGeneratorTest::testWatchTopicLink with data set #3 (Title Object (...), Flow\Model\UUID Object (...)) |
78 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
79 | |
80 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:96 |
81 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
82 | |
83 | 10) Flow\Tests\UrlGeneratorTest::testUnwatchTopicLink with data set #0 (Title Object (...), Flow\Model\UUID Object (...)) |
84 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
85 | |
86 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:110 |
87 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
88 | |
89 | 11) Flow\Tests\UrlGeneratorTest::testUnwatchTopicLink with data set #1 (Title Object (...), Flow\Model\UUID Object (...)) |
90 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
91 | |
92 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:110 |
93 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
94 | |
95 | 12) Flow\Tests\UrlGeneratorTest::testUnwatchTopicLink with data set #2 (Title Object (...), Flow\Model\UUID Object (...)) |
96 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
97 | |
98 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:110 |
99 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
100 | |
101 | 13) Flow\Tests\UrlGeneratorTest::testUnwatchTopicLink with data set #3 (Title Object (...), Flow\Model\UUID Object (...)) |
102 | PHPUnit_Framework_Exception: Argument #2 (No Value) of PHPUnit_Framework_Assert::assertArrayHasKey() must be a array or ArrayAccess |
103 | |
104 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/UrlGeneratorTest.php:110 |
105 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
106 | |
107 | -- |
108 | |
109 | There was 1 failure: |
110 | |
111 | 1) Flow\Tests\NotifiedUsersTest::testWatchingBoard |
112 | Failed asserting that an array contains 10. |
113 | |
114 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Notifications/NotifiedUsersTest.php:79 |
115 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Notifications/NotifiedUsersTest.php:64 |
116 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
117 | |
118 | -- |
119 | |
120 | There were 9 skipped tests: |
121 | |
122 | 1) Flow\Tests\BufferedBagOStuffTest::testMergeFailDelayed |
123 | Unable to fork, can't test merge |
124 | |
125 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Data/BagOStuff/BufferedBagOStuffTest.php:211 |
126 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
127 | |
128 | 2) Flow\Tests\LocalBufferedBagOStuffTest::testMergeFailDelayed |
129 | Unable to fork, can't test merge |
130 | |
131 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Data/BagOStuff/BufferedBagOStuffTest.php:211 |
132 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
133 | |
134 | 3) Flow\Tests\BufferedCacheTest::testMergeFailDelayed |
135 | Unable to fork, can't test merge |
136 | |
137 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Data/BagOStuff/BufferedBagOStuffTest.php:211 |
138 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
139 | |
140 | 4) Flow\Tests\Formatter\FormatterTest::testCheckUserFormatter with data set #0 ('With only a topicId reply sho...t fail', Closure Object (...), 'reply', Flow\Model\UUID Object (...), Flow\Model\UUID Object (...), null) |
141 | CheckUser is not available |
142 | |
143 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Formatter/FormatterTest.php:53 |
144 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
145 | |
146 | 5) Flow\Tests\Formatter\FormatterTest::testCheckUserFormatter with data set #1 ('With topicId and postId shoul...t fail', Closure Object (...), 'reply', Flow\Model\UUID Object (...), Flow\Model\UUID Object (...), Flow\Model\UUID Object (...)) |
147 | CheckUser is not available |
148 | |
149 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Formatter/FormatterTest.php:53 |
150 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
151 | |
152 | 6) Flow\Tests\Handlebars\FlowPostMetaActionsTest::testTimestampEdited with data set #0 ('never been edited', '02:52, 1 October 2014', array(true, 'creator', 'creator', null)) |
153 | DomCrawler component is not available. |
154 | |
155 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Handlebars/FlowPostMetaActionsTest.php:81 |
156 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
157 | |
158 | 7) Flow\Tests\Handlebars\FlowPostMetaActionsTest::testTimestampEdited with data set #1 ('last edited by post creator', 'Edited 04:21, 9 October 2014', array(false, 'creator', 'creator', 'creator')) |
159 | DomCrawler component is not available. |
160 | |
161 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Handlebars/FlowPostMetaActionsTest.php:81 |
162 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
163 | |
164 | 8) Flow\Tests\Handlebars\FlowPostMetaActionsTest::testTimestampEdited with data set #2 ('last edited by other than post creator', 'Edited by author 04:21, 9 October 2014', array(false, 'author', 'creator', 'author')) |
165 | DomCrawler component is not available. |
166 | |
167 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Handlebars/FlowPostMetaActionsTest.php:81 |
168 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
169 | |
170 | 9) Flow\Tests\Handlebars\FlowPostMetaActionsTest::testTimestampEdited with data set #3 ('most recent revision not a co...t edit', 'Edited 04:21, 9 October 2014', array(false, 'author', 'creator', 'creator')) |
171 | DomCrawler component is not available. |
172 | |
173 | /vagrant/mediawiki/extensions/Flow/tests/phpunit/Handlebars/FlowPostMetaActionsTest.php:81 |
174 | /vagrant/mediawiki/tests/phpunit/MediaWikiTestCase.php:131 |
175 | |
176 | FAILURES! |
177 | Tests: 472, Assertions: 1343, Failures: 1, Errors: 13, Skipped: 9. |
178 | Warning: Must specify directory location for XHProf runs. Trying /tmp as default. You can either pass the directory location as an argument to the constructor for XHProfRuns_Default() or set xhprof.output_dir ini param. |