Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed Jun 26, 2014
1 parent 12bb1ad commit d944bf7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
4 changes: 2 additions & 2 deletions modules/api/controllers/IndexController.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ function jsonAction()
}

/** Allows components to call redirect */
function redirect($url)
function redirect($url, array $options = array())
{
$this->_redirect($url);
$this->_redirect($url, $options);
}
} // end class
5 changes: 1 addition & 4 deletions tests/PHPUnitMySQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,12 @@

copy($base_path . '/tests/configs/mysql.ini', $base_path . '/tests/configs/lock.mysql.ini');

require_once 'PHP/CodeCoverage/Filter.php';
PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');

if (strpos('@php_bin@', '@php_bin') === 0) {
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
}

require_once 'PHPUnit/Autoload.php';

define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');

PHPUnit_TextUI_Command::main();
5 changes: 1 addition & 4 deletions tests/PHPUnitPgSQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,12 @@

copy($base_path . '/tests/configs/pgsql.ini', $base_path . '/tests/configs/lock.pgsql.ini');

require_once 'PHP/CodeCoverage/Filter.php';
PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');

if (strpos('@php_bin@', '@php_bin') === 0) {
set_include_path(dirname(__FILE__) . PATH_SEPARATOR . get_include_path());
}

require_once 'PHPUnit/Autoload.php';

define('PHPUnit_MAIN_METHOD', 'PHPUnit_TextUI_Command::main');

PHPUnit_TextUI_Command::main();

0 comments on commit d944bf7

Please sign in to comment.