Skip to content

Commit

Permalink
Fix a few paths due to the directory change.
Browse files Browse the repository at this point in the history
  • Loading branch information
helgi committed Jul 11, 2011
1 parent 79809c7 commit 9c6af4d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function __autoload($class)
$phar['Sqlite.php'] = file_get_contents(__DIR__ . '/Sqlite.php');
$phar['SourceFile/PerTest.php'] = file_get_contents(__DIR__ . '/SourceFile/PerTest.php');

$phar['cover.css'] = file_get_contents(__DIR__ . '/../../../../www/CoverageAnalyzer/cover.css');
$phar['cover.css'] = file_get_contents(__DIR__ . '/../../../www/CoverageAnalyzer/cover.css');
$phar['index.php'] = '<?php
namespace Pyrus\Developer\CoverageAnalyzer {
session_start();
Expand Down
4 changes: 2 additions & 2 deletions src/Pyrus/Developer/CoverageAnalyzer/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function __autoload($c)
}
}
namespace Pyrus\Developer\CoverageAnalyzer {
$a = new Aggregator($testpath = realpath(__DIR__ . '/../../../../../Pyrus/tests'),
realpath(__DIR__ . '/../../../../../Pyrus/src'),
$a = new Aggregator($testpath = realpath(__DIR__ . '/../../../../Pyrus/tests'),
realpath(__DIR__ . '/../../../../Pyrus/src'),
$testpath . '/pear2coverage.db');
if (file_exists(__DIR__ . '/test')) {
foreach (new \DirectoryIterator(__DIR__ . '/test') as $file) {
Expand Down
4 changes: 2 additions & 2 deletions src/Pyrus/Developer/Creator/Phar/PHPArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ function __construct($path, $startupfile = false, $fileformat = \Phar::PHAR, $co
' PHP_Archive class for phar creation');
}
$phparchive = '?>' . $phparchive . '<?php';
$template = @file_get_contents(dirname(__FILE__) . '/../../../../../../data/PEAR2_Pyrus_Developer/pear2.php.net/phartemplate.php');
$template = @file_get_contents(dirname(__FILE__) . '/../../../../../data/PEAR2_Pyrus_Developer/pear2.php.net/phartemplate.php');
if (!$template) {
$template = file_get_contents(__DIR__ . '/../../../../../data/phartemplate.php');
$template = file_get_contents(__DIR__ . '/../../../../data/phartemplate.php');
}
$this->stub = str_replace('@PHPARCHIVE@', $phparchive, $template);
if ($startupfile === false) {
Expand Down
2 changes: 1 addition & 1 deletion src/Pyrus/Developer/PackageFile/Commands.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ function extSkeleton($frontend, $args, $options)
mkdir($ext);
mkdir($ext . '/tests');

$this->skeleton = realpath(__DIR__ . '/../../../../../data/PEAR2_Pyrus_Developer/pear2.php.net/skeleton');
$this->skeleton = realpath(__DIR__ . '/../../../../data/PEAR2_Pyrus_Developer/pear2.php.net/skeleton');
$this->footer = "\n" .
"/*\n" .
" * Local variables:\n" .
Expand Down

0 comments on commit 9c6af4d

Please sign in to comment.