Skip to content

Commit

Permalink
Fixed the phpunit path bootstrapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhrrgn committed Apr 23, 2011
1 parent f944f90 commit 7a099e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bootstrap_phpunit.php
Expand Up @@ -16,7 +16,7 @@
/**
* Website docroot
*/
define('DOCROOT', __DIR__.DIRECTORY_SEPARATOR);
define('DOCROOT', realpath(__DIR__.DIRECTORY_SEPARATOR.$_SERVER['doc_root']).DIRECTORY_SEPARATOR);

( ! is_dir($app_path) and is_dir(DOCROOT.$app_path)) and $app_path = DOCROOT.$app_path;
( ! is_dir($core_path) and is_dir(DOCROOT.$core_path)) and $core_path = DOCROOT.$core_path;
Expand Down
7 changes: 4 additions & 3 deletions phpunit.xml
Expand Up @@ -2,9 +2,10 @@

<phpunit colors="true" stopOnFailure="false" bootstrap="bootstrap_phpunit.php">
<php>
<server name="app_path" value="../app"/>
<server name="core_path" value="../core"/>
<server name="package_path" value="../packages"/>
<server name="doc_root" value="../../"/>
<server name="app_path" value="fuel/app"/>
<server name="core_path" value="fuel/core"/>
<server name="package_path" value="fuel/packages"/>
</php>
<testsuites>
<testsuite name="core">
Expand Down

0 comments on commit 7a099e6

Please sign in to comment.