Page MenuHomePhabricator

Some tests rely on execution order for class loading
Closed, ResolvedPublic

Description

It looks like php unit is not running test files with a underscore in the file name or in the class name.

gerrit 97347 fails on renaming tests, which should not, because the test itself was not changed.

The tree tests are:
RevisionStorageTest_ContentHandlerUseDB.php
WikiPageTest_ContentHandlerUseDB.php
LanguageBe_taraskTest.php


Version: 1.23.0
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:16 AM
bzimport set Reference to bz57557.
bzimport added a subscriber: Unknown Object (MLST).
MaxSem renamed this task from phpunit.php does not run tests with underscore in file name or class name to Some tests rely on execution order for class loading.Jan 21 2016, 8:39 PM
MaxSem set Security to None.

Change 265575 had a related patch set uploaded (by MaxSem):
Register a couple of test classes in autoloader

https://gerrit.wikimedia.org/r/265575

Change 265575 merged by MaxSem:
Register a couple of test classes in autoloader

https://gerrit.wikimedia.org/r/265575

MaxSem claimed this task.