Skip to content

Commit

Permalink
Updating CakeTestSuiteDispatcher parsing of .
Browse files Browse the repository at this point in the history
Better handling of cases where dirname() of PHP_SELF returns only '/'.
  • Loading branch information
jperras committed Jan 14, 2010
1 parent ff3aefe commit 88a09cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cake/tests/lib/cake_test_suite_dispatcher.php
Expand Up @@ -76,7 +76,8 @@ class CakeTestSuiteDispatcher {
*/
function CakeTestSuiteDispatcher() {
$this->_baseUrl = $_SERVER['PHP_SELF'];
$this->_baseDir = dirname($this->_baseUrl) . '/';
$dir = dirname($this->_baseUrl);
$this->_baseDir = ($dir === '/') ? $dir : $dir . '/';
}

/**
Expand Down

0 comments on commit 88a09cf

Please sign in to comment.