Skip to content

Commit

Permalink
fix scrutinizer
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Oct 19, 2020
1 parent b6f96b8 commit 175f160
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
14 changes: 5 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ matrix:
dist: trusty
- php: 5.5
dist: trusty
- php: 7.0
env: COVERAGE=1
- php: nightly
env: DEPENDENCIES="--ignore-platform-reqs"
exclude:
Expand All @@ -47,8 +45,6 @@ before_install:
- sudo apt-get install -y graphviz

before_script:
## Deactivate xdebug if we don't do code coverage
- if [ -z "$COVERAGE" ]; then phpenv config-rm xdebug.ini || echo "xdebug not available" ; fi
## Composer
- composer self-update
## Composer in PHP versions 5.x requires 3 GB memory
Expand All @@ -60,17 +56,17 @@ before_script:

script:
## PHP_CodeSniffer
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n ; fi
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n
## PHP Copy/Paste Detector
# - ./vendor/bin/phpcpd src/
## PHP Mess Detector
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist ; fi
- ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist
## PHPUnit
- ./vendor/bin/phpunit -c ./ $(if [ -n "$COVERAGE" ]; then echo --coverage-text --coverage-html ./build/coverage; else echo --no-coverage; fi)
- phpunit -c ./ $(if [ -n "$COVERAGE" ]; then echo --coverage-text --coverage-html ./build/coverage; else echo --no-coverage; fi)
## PHPLOC
- if [ -z "$COVERAGE" ]; then ./vendor/bin/phploc src/ ; fi
- ./vendor/bin/phploc src/
## PHPDocumentor
#- if [ -z "$COVERAGE" ]; then ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig" ; fi
#- ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig"

after_script:
## PHPDocumentor
Expand Down
2 changes: 1 addition & 1 deletion tests/Common/Tests/XMLWriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testWriteAttributeShouldWriteFloatValueLocaleIndependent()
$xmlWriter->endElement();

setlocale(LC_NUMERIC, 'de_DE.UTF-8', 'de');

$this->assertSame('<element name="1.2"/>' . chr(10), $xmlWriter->getData());
}
}

0 comments on commit 175f160

Please sign in to comment.