-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates tests updates codestyle address laminas migration
- Loading branch information
Showing
12 changed files
with
198 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@copyright Copyright (c) 2016 bushbaby multimedia. (https://bushbaby.nl) | ||
@author Bas Kamer <baskamer@gmail.com> | ||
@license MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ composer.phar | |
composer.lock | ||
phpunit.xml | ||
vendor/ | ||
/.phpunit.result.cache | ||
/.php_cs.cache | ||
/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
/** | ||
* @copyright Copyright (c) 2016 bushbaby multimedia. (https://bushbaby.nl) | ||
* @author Bas Kamer <baskamer@gmail.com> | ||
* @license MIT | ||
*/ | ||
|
||
declare(strict_types=1); | ||
|
||
$config = new Bsb\CS\Config(); | ||
$config->getFinder()->in(__DIR__)->append(['.php_cs']); | ||
|
||
$cacheDir = \getenv('TRAVIS') ? \getenv('HOME') . '/.php-cs-fixer' : __DIR__; | ||
|
||
$config->setCacheFile($cacheDir . '/.php_cs.cache'); | ||
|
||
return $config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,42 @@ | ||
sudo: false | ||
|
||
language: php | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.php-cs-fixer | ||
|
||
matrix: | ||
fast_finish: true | ||
include: | ||
- php: 5.5 | ||
- php: 5.6 | ||
- php: 7 | ||
- php: hhvm | ||
allow_failures: | ||
- php: hhvm | ||
- php: 7.2 | ||
env: | ||
- DEPENDENCIES="" | ||
- EXECUTE_CS_CHECK=true | ||
- TEST_COVERAGE=true | ||
- php: 7.2 | ||
env: | ||
- DEPENDENCIES="--prefer-lowest --prefer-stable" | ||
- php: 7.3 | ||
env: | ||
- DEPENDENCIES="" | ||
- php: 7.3 | ||
env: | ||
- DEPENDENCIES="--prefer-lowest --prefer-stable" | ||
- php: 7.4 | ||
env: | ||
- DEPENDENCIES="" | ||
- php: 7.4 | ||
env: | ||
- DEPENDENCIES="--prefer-lowest --prefer-stable" | ||
|
||
before_script: | ||
- mkdir -p "$HOME/.php-cs-fixer" | ||
- composer self-update | ||
- composer install --prefer-source | ||
- composer update $DEPENDENCIES | ||
|
||
script: | ||
- vendor/bin/phpunit -c ./phpunit.xml | ||
- vendor/bin/phpcs --standard=PSR2 ./src/ | ||
|
||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover test/_build/logs/clover.xml | ||
- mkdir -p build/logs | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit; fi | ||
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run; fi | ||
|
||
notifications: | ||
irc: "irc.freenode.org#zftalk.modules" | ||
email: false | ||
after_success: | ||
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
{ | ||
"name": "bushbaby/doctrine-managerregistry-servicemanager", | ||
"description": "An implementation of Doctrine's ManagerRegistry for the ZendFramework ServiceManager", | ||
"require": { | ||
"php": "^5.5 || ^7.0", | ||
"zendframework/zend-servicemanager" : "^2.6 || ^3.0", | ||
"doctrine/orm": "^2.4" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.1", | ||
"squizlabs/php_codesniffer": "^2.5" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"BsbDoctrineRegistry\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"BsbDoctrineRegistryTest\\": "test/src/" | ||
} | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Bas Kamer", | ||
"email": "bas@bushbaby.nl" | ||
} | ||
] | ||
"name": "bushbaby/doctrine-managerregistry-servicemanager", | ||
"description": "An implementation of Doctrine's ManagerRegistry for the Laminas ServiceManager", | ||
"require": { | ||
"php": "^7.2", | ||
"laminas/laminas-servicemanager": "^3.0", | ||
"doctrine/orm": "^2.4" | ||
}, | ||
"require-dev": { | ||
"bushbaby/php-cs-fixer-config": "^1.0", | ||
"phpunit/phpunit": "^8.5", | ||
"php-coveralls/php-coveralls": "^2.0" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"BsbDoctrineRegistry\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"BsbDoctrineRegistryTest\\": "test/" | ||
} | ||
}, | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Bas Kamer", | ||
"email": "baskamer@gmail.com" | ||
} | ||
], | ||
"scripts": { | ||
"check": [ | ||
"@cs", | ||
"@test" | ||
], | ||
"cs": "php-cs-fixer fix -v --diff --dry-run", | ||
"cs-fix": "php-cs-fixer fix -v --diff", | ||
"test": "phpunit" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0"?> | ||
<phpunit colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
verbose="true" | ||
stopOnFailure="false" | ||
processIsolation="false" | ||
backupGlobals="false"> | ||
|
||
<testsuite name="test"> | ||
<directory>./test</directory> | ||
</testsuite> | ||
|
||
<filter> | ||
<whitelist addUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">./src</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<logging> | ||
<log type="coverage-clover" target="build/logs/clover.xml"/> | ||
<log type="coverage-html" target="build/html" lowUpperBound="90" highLowerBound="100"/> | ||
</logging> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.