Skip to content

Commit

Permalink
Merge pull request #11 from WebFiori/dev
Browse files Browse the repository at this point in the history
test: Fix Root Directory
  • Loading branch information
usernane committed Mar 26, 2024
2 parents 7676aeb + f891560 commit e7cc980
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//Leave as is
define('UNIT_TESTING', true);

$Root = trim(__DIR__, $DS.'tests');
$Root = substr(__DIR__, 0, strlen(__DIR__) - strlen('tests'));

//an array that contains possible locations at which
//WebFiori Framework might exist.
Expand All @@ -29,6 +29,7 @@

//Printing informative messages in the terminal
fprintf(STDOUT, "Bootstrap Path: '".__DIR__."'\n");
fprintf(STDOUT,'Roor Path: \''.$Root.'\''."\n");
fprintf(STDOUT,'Include Path: \''.get_include_path().'\''."\n");
fprintf(STDOUT,"Tryning to load the class 'AutoLoader'...\n");
$isAutoloaderLoaded = false;
Expand Down

0 comments on commit e7cc980

Please sign in to comment.