mirror of
https://github.com/Respect/Validation.git
synced 2024-06-01 13:22:24 +02:00
Move unit tests to "tests/unit"
This commit is contained in:
parent
4329252709
commit
02a1923eb5
|
@ -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:
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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
Loading…
Reference in a new issue