Skip to content

Commit

Permalink
These report tests were not working once phpcs was installed because …
Browse files Browse the repository at this point in the history
…they assumed a directory structure

git-svn-id: http://svn.php.net/repository/pear/packages/PHP_CodeSniffer/trunk@302417 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
gsherwood committed Aug 18, 2010
1 parent ca81708 commit ab51b2f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion tests/Core/Reports/GitblameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
require_once 'PHPUnit/Framework/TestCase.php';
require_once dirname(__FILE__).'/AbstractTestCase.php';
require_once dirname(__FILE__).'/Mock/Gitblame.php';
require_once dirname(__FILE__).'/../../../CodeSniffer/Reports/VersionControl.php';

if (is_file(dirname(__FILE__).'/../../../CodeSniffer.php') === true) {
// We are not installed.
include_once dirname(__FILE__).'/../../../CodeSniffer/Reports/VersionControl.php';
} else {
include_once 'PHP/CodeSniffer/Reports/VersionControl.php';
}

/**
* Tests for the Gitblame report of PHP_CodeSniffer.
Expand Down
8 changes: 7 additions & 1 deletion tests/Core/Reports/SvnblameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
require_once 'PHPUnit/Framework/TestCase.php';
require_once dirname(__FILE__).'/AbstractTestCase.php';
require_once dirname(__FILE__).'/Mock/Svnblame.php';
require_once dirname(__FILE__).'/../../../CodeSniffer/Reports/VersionControl.php';

if (is_file(dirname(__FILE__).'/../../../CodeSniffer.php') === true) {
// We are not installed.
include_once dirname(__FILE__).'/../../../CodeSniffer/Reports/VersionControl.php';
} else {
include_once 'PHP/CodeSniffer/Reports/VersionControl.php';
}

/**
* Tests for the Source report of PHP_CodeSniffer.
Expand Down

0 comments on commit ab51b2f

Please sign in to comment.