diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Framework/VCard.php | 2 | ||||
-rw-r--r-- | tests/Selenium/bootstrap.php | 4 | ||||
-rw-r--r-- | tests/bootstrap.php | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/Framework/VCard.php b/tests/Framework/VCard.php index c23dba844..6eea2c1a4 100644 --- a/tests/Framework/VCard.php +++ b/tests/Framework/VCard.php @@ -10,7 +10,7 @@ class Framework_VCard extends PHPUnit_Framework_TestCase function _srcpath($fn) { - return realpath(dirname(__FILE__) . '/../src/' . $fn); + return realpath(__DIR__ . '/../src/' . $fn); } function test_parse_one() diff --git a/tests/Selenium/bootstrap.php b/tests/Selenium/bootstrap.php index ed9c2eb32..124a81ef2 100644 --- a/tests/Selenium/bootstrap.php +++ b/tests/Selenium/bootstrap.php @@ -22,9 +22,9 @@ if (php_sapi_name() != 'cli') die("Not in shell mode (php-cli)"); -if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(dirname(__FILE__) . '/../../') . '/' ); +if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(__DIR__ . '/../../') . '/' ); -define('TESTS_DIR', dirname(__FILE__) . '/'); +define('TESTS_DIR', __DIR__ . '/'); if (@is_dir(TESTS_DIR . 'config')) { define('RCUBE_CONFIG_DIR', TESTS_DIR . 'config'); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 192997d0d..bf7199c1e 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -22,9 +22,9 @@ if (php_sapi_name() != 'cli') die("Not in shell mode (php-cli)"); -if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); +if (!defined('INSTALL_PATH')) define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/' ); -define('TESTS_DIR', dirname(__FILE__) . '/'); +define('TESTS_DIR', __DIR__ . '/'); if (@is_dir(TESTS_DIR . 'config')) { define('RCUBE_CONFIG_DIR', TESTS_DIR . 'config'); |