From 1b39d9a6c744a393e7930c2493cc2ddc9c9e95bf Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Sat, 08 Aug 2015 03:32:24 -0400 Subject: [PATCH] PHP7: Fixed some E_WARNING errors that previously were E_STRICT --- tests/Selenium/bootstrap.php | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/Selenium/bootstrap.php b/tests/Selenium/bootstrap.php index 8c57571..9baf0c0 100644 --- a/tests/Selenium/bootstrap.php +++ b/tests/Selenium/bootstrap.php @@ -38,7 +38,7 @@ die("Fatal error: ini_set/set_include_path does not work."); } -$rcmail = rcmail::get_instance('test'); +$rcmail = rcmail::get_instance(0, 'test'); define('TESTS_URL', $rcmail->config->get('tests_url')); define('TESTS_BROWSER', $rcmail->config->get('tests_browser', 'firefox')); @@ -78,9 +78,9 @@ system(sprintf('cat %s %s | mysql -h %s -u %s --password=%s %s', realpath(INSTALL_PATH . '/SQL/mysql.initial.sql'), realpath(TESTS_DIR . 'Selenium/data/mysql.sql'), - escapeshellarg($dsn['host']), - escapeshellarg($dsn['user']), - escapeshellarg($dsn['pass']), + escapeshellarg($dsn['hostspec']), + escapeshellarg($dsn['username']), + escapeshellarg($dsn['password']), escapeshellarg($dsn['database']) )); } @@ -337,6 +337,11 @@ return $response; } + protected function getText($element) + { + return $element->text() ?: $element->attribute('textContent'); + } + protected function assertHasClass($classname, $element) { $this->assertContains($classname, $element->attribute('class')); -- Gitblit v1.9.1