You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move the stray unit_tests/src/Web2project tests under unit_tests/classes/w2p #469
unit_tests/src/Web2project/Output/ holds two tests left over from an earlier attempt at a PSR-0 Web2project\ layout:
EmailManagerTest.php, class Web2project_Output_EmailManagerTest, which tests w2p_Output_EmailManager
Email/TemplateTest.php, class Web2project_Output_EmailTemplateTest, which tests w2p_Output_Email_Template
Every other core-class test lives under unit_tests/classes/w2p/, mirroring classes/w2p/, and is named w2p_<Path>_<Class>Test. These two are the only files in unit_tests/src/, and that src/ doesn't correspond to any source directory. (composer.json on dev-5.0.0 has a psr-0 entry for Web2project → src/, but src/ doesn't exist.)
They still run, because phpunit.xml scans the whole unit_tests/ directory, but they're easy to miss and they confuse anyone looking for the tests of a given class.
Fix: move them to unit_tests/classes/w2p/Output/EmailManagerTest.php and unit_tests/classes/w2p/Output/Email/TemplateTest.php, rename the classes to w2p_Output_EmailManagerTest and w2p_Output_Email_TemplateTest, and delete unit_tests/src/. If the PSR-4 migration proposal (#470) goes ahead, these get renamed again, so either do this first or fold it into that work.
Activity
Move the stray unit_tests/src/Web2project tests under unit_tests/clas…