Skip to content

Commit 0da41cb

Browse files
authored
Merge pull request #3 from refactorstudio/Scrutinizer
Add Scrutinizer
2 parents 2a228e5 + e163e28 commit 0da41cb

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.scrutinizer.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
filter:
2+
excluded_paths: [vendor/*, tests/*]
3+
tools:
4+
external_code_coverage: true
5+
php_code_coverage: true
6+
checks:
7+
php: true

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ install:
99
- composer install
1010

1111
script:
12-
- ./vendor/bin/phpunit
12+
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
13+
14+
after_script:
15+
- wget https://scrutinizer-ci.com/ocular.phar
16+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover

tests/PhpArrayToXmlGettersSettersTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ public function test_it_should_get_and_set_the_custom_root_name()
8888
}
8989

9090
/**
91-
* @covers \RefactorStudio\PhpArrayToXml\PhpArrayToXml::setCustomNodeName
92-
* @covers \RefactorStudio\PhpArrayToXml\PhpArrayToXml::getCustomNodeName
91+
* @covers \RefactorStudio\PhpArrayToXml\PhpArrayToXml::setCustomTagName
92+
* @covers \RefactorStudio\PhpArrayToXml\PhpArrayToXml::getCustomTagName
9393
*/
94-
public function test_it_should_get_and_set_the_custom_node_name()
94+
public function test_it_should_get_and_set_the_custom_tag_name()
9595
{
9696
$class = new PhpArrayToXml();
9797

0 commit comments

Comments
 (0)