I am fed up of selenium constants which aren't properly defined by all files using...
authorPlatonides <platonides@users.mediawiki.org>
Sat, 1 Jan 2011 20:56:39 +0000 (20:56 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Sat, 1 Jan 2011 20:56:39 +0000 (20:56 +0000)
commit3662ccd94909e5cb9b11efe550716e99493732c2
treea37cf051d294785abd51eeef6510f786c691ed1c
parent2b8f832da87df8f38aa9c8a452b1f330631cf401
I am fed up of selenium constants which aren't properly defined by all files using them.
Making those of SeleniumTestConstants.php into class constants.

for i in $(grep -o 'const [A-Z_]*' SeleniumTestConstants.php | cut -c 7-); do
find -name \*.php -and -not -name SeleniumTestConstants.php -exec sed -i s/$i/SeleniumTestConstants::$i/g \{\} +
done
14 files changed:
tests/selenium/SeleniumTestCase.php
tests/selenium/SeleniumTestConstants.php
tests/selenium/suites/AddContentToNewPageTestCase.php
tests/selenium/suites/AddNewPageTestCase.php
tests/selenium/suites/CreateAccountTestCase.php
tests/selenium/suites/DeletePageAdminTestCase.php
tests/selenium/suites/EmailPasswordTestCase.php
tests/selenium/suites/MovePageTestCase.php
tests/selenium/suites/MyContributionsTestCase.php
tests/selenium/suites/MyWatchListTestCase.php
tests/selenium/suites/PageSearchTestCase.php
tests/selenium/suites/PreviewPageTestCase.php
tests/selenium/suites/SavePageTestCase.php
tests/selenium/suites/UserPreferencesTestCase.php