Indefero

Indefero Commit Details


Date:2011-04-19 04:07:58 (13 years 8 months ago)
Author:Thomas Keller
Branch:develop, feature-issue_links, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, release-1.2, release-1.3
Commit:801af66a4e5d6ee9a5b17a4cf1f0e4dfa6f55848
Parents: df6ffdf42084bdf6fc163cc4fdb14dfa901f8ec7
Message:Apparently header() does kind of work for php-cli, but of course breaks horribly. Luckily Pluf has a little knob (IN_UNIT_TESTS) that can prevent this breakage.

Changes:

File differences

test/bootstrap.php
55
66
77
8
9
10
811
912
1013
die("'test/config.php' does not exist\n");
}
// prevents function calls in Pluf that break tests under php-cli
define('IN_UNIT_TESTS', 1);
echo ">>> setting paths...\n";
define('SRCDIR', realpath(dirname(__FILE__) . '/../src'));
define('TESTDIR', dirname(__FILE__));

Archive Download the corresponding diff file

Page rendered in 0.08181s using 13 queries.