diff options
Diffstat (limited to 'test/selenium/TestBase.php')
-rw-r--r-- | test/selenium/TestBase.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/selenium/TestBase.php b/test/selenium/TestBase.php index e1bb2687f2..c1dfebf885 100644 --- a/test/selenium/TestBase.php +++ b/test/selenium/TestBase.php @@ -186,7 +186,7 @@ abstract class PMA_SeleniumBase extends PHPUnit_Extensions_Selenium2TestCase ); } $this->database_name = $GLOBALS['TESTSUITE_DATABASE'] - . $GLOBALS['PMA_String']->substr(md5(rand()), 0, 7); + . /*overload*/mb_substr(md5(rand()), 0, 7); $this->dbQuery( 'CREATE DATABASE IF NOT EXISTS ' . $this->database_name ); @@ -463,7 +463,7 @@ abstract class PMA_SeleniumBase extends PHPUnit_Extensions_Selenium2TestCase * Not supported in Safari Webdriver, see * http://code.google.com/p/selenium/issues/detail?id=4136 */ - if ($GLOBALS['PMA_String']->strtolower($this->getBrowser()) == 'safari') { + if (/*overload*/mb_strtolower($this->getBrowser()) == 'safari') { $this->markTestSkipped('Can not send keys to Safari browser.'); } parent::keys($text); @@ -483,7 +483,7 @@ abstract class PMA_SeleniumBase extends PHPUnit_Extensions_Selenium2TestCase * Not supported in Safari Webdriver, see * http://code.google.com/p/selenium/issues/detail?id=4136 */ - if ($GLOBALS['PMA_String']->strtolower($this->getBrowser()) == 'safari') { + if (/*overload*/mb_strtolower($this->getBrowser()) == 'safari') { $this->markTestSkipped('MoveTo not supported on Safari browser.'); } parent::moveto($element); @@ -501,7 +501,7 @@ abstract class PMA_SeleniumBase extends PHPUnit_Extensions_Selenium2TestCase * Not supported in Safari Webdriver, see * http://code.google.com/p/selenium/issues/detail?id=4136 */ - if ($GLOBALS['PMA_String']->strtolower($this->getBrowser()) == 'safari') { + if (/*overload*/mb_strtolower($this->getBrowser()) == 'safari') { $this->markTestSkipped('Alerts not supported on Safari browser.'); } return parent::alertText(); @@ -520,7 +520,7 @@ abstract class PMA_SeleniumBase extends PHPUnit_Extensions_Selenium2TestCase * Firefox needs some escaping of a text, see * http://code.google.com/p/selenium/issues/detail?id=1723 */ - if ($GLOBALS['PMA_String']->strtolower($this->getBrowser()) == 'firefox') { + if (/*overload*/mb_strtolower($this->getBrowser()) == 'firefox') { $text = str_replace( "(", PHPUnit_Extensions_Selenium2TestCase_Keys::SHIFT |