Move unit tests to "tests/unit"

This commit is contained in:
Henrique Moody 2015-08-11 13:32:15 -03:00
parent 4329252709
commit 02a1923eb5
114 changed files with 8 additions and 7 deletions

View file

@ -19,8 +19,8 @@ script:
- vendor/bin/phpunit --configuration phpunit.xml.dist --colors --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- test "5.6" == "${TRAVIS_PHP_VERSION}" && wget https://scrutinizer-ci.com/ocular.phar
- test -f ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover
notifications:
irc:

View file

@ -1,4 +1,5 @@
<phpunit backupGlobals="false"
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
cacheTokens="true"
convertErrorsToExceptions="true"
@ -10,14 +11,14 @@
verbose="false">
<testsuites>
<testsuite name="unit">
<directory suffix="Test.php">tests</directory>
<directory suffix="Test.php">tests/unit/</directory>
</testsuite>
<testsuite name="integration">
<directory suffix=".phpt">tests</directory>
<directory suffix=".phpt">tests/integration/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<whitelist processUncoveredFilesFromWhitelist="false">
<directory>library/</directory>
</whitelist>
</filter>

View file

@ -24,7 +24,7 @@ class CheckExceptionsTest extends \PHPUnit_Framework_TestCase
public function provideListOfRuleNames()
{
$rulesDirectory = __DIR__.'/../../library/Rules';
$rulesDirectory = 'library/Rules';
$rulesDirectoryIterator = new DirectoryIterator($rulesDirectory);
$ruleNames = array();
foreach ($rulesDirectoryIterator as $fileInfo) {

Some files were not shown because too many files have changed in this diff Show more