Skip to content

Commit 0893795

Browse files
author
Steven Maguire
committed
adding scrut tests
1 parent 95b02be commit 0893795

File tree

6 files changed

+60
-6
lines changed

6 files changed

+60
-6
lines changed

.scrutinizer.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
filter:
2+
excluded_paths: [test/*]
3+
checks:
4+
php:
5+
code_rating: true
6+
remove_extra_empty_lines: true
7+
remove_php_closing_tag: true
8+
remove_trailing_whitespace: true
9+
fix_use_statements:
10+
remove_unused: true
11+
preserve_multiple: false
12+
preserve_blanklines: true
13+
order_alphabetically: true
14+
fix_php_opening_tag: true
15+
fix_linefeed: true
16+
fix_line_ending: true
17+
fix_identation_4spaces: true
18+
fix_doc_comments: true
19+
tools:
20+
external_code_coverage:
21+
timeout: 600
22+
runs: 3
23+
php_analyzer: true
24+
php_code_coverage: false
25+
php_code_sniffer:
26+
config:
27+
standard: PSR2
28+
filter:
29+
paths: ['src']
30+
php_loc:
31+
enabled: true
32+
excluded_dirs: [vendor, test]
33+
php_cpd:
34+
enabled: true
35+
excluded_dirs: [vendor, test]

.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,24 @@ php:
44
- 5.4
55
- 5.5
66
- 5.6
7+
- 7.0
78
- hhvm
89

910
before_script:
1011
- travis_retry composer self-update
1112
- travis_retry composer install --no-interaction --prefer-source --dev
13+
- travis_retry pyrus install pear/PHP_CodeSniffer
14+
- travis_retry phpenv rehash
15+
16+
script:
17+
- phpcs --standard=psr2 src/
18+
- phpunit --coverage-text --coverage-clover=coverage.clover
19+
20+
after_script:
21+
- wget https://scrutinizer-ci.com/ocular.phar
22+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
23+
24+
matrix:
25+
allow_failures:
26+
- php: 7.0
27+
- php: hhvm

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Github Provider for OAuth 2.0 Client
2-
3-
[![Build Status](https://travis-ci.org/thephpleague/oauth2-github.svg?branch=master)](https://travis-ci.org/thephpleague/oauth2-github)
4-
[![Latest Stable Version](https://poser.pugx.org/league/oauth2-github/v/stable.svg)](https://packagist.org/packages/league/oauth2-github)
2+
[![Latest Version](https://img.shields.io/github/release/thephpleague/oauth2-github.svg?style=flat-square)](https://github.com/thephpleague/oauth2-github/releases)
3+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
4+
[![Build Status](https://img.shields.io/travis/thephpleague/oauth2-github/master.svg?style=flat-square)](https://travis-ci.org/thephpleague/oauth2-github)
5+
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/oauth2-github.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/oauth2-github/code-structure)
6+
[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/oauth2-github.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/oauth2-github)
7+
[![Total Downloads](https://img.shields.io/packagist/dt/league/oauth2-github.svg?style=flat-square)](https://packagist.org/packages/league/oauth2-github)
58

69
This package provides Github OAuth 2.0 support for the PHP League's [OAuth 2.0 Client](https://github.com/thephpleague/oauth2-client).
710

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"autoload-dev": {
3535
"psr-4": {
36-
"League\\OAuth2\\Client\\Test\\": "tests/src/"
36+
"League\\OAuth2\\Client\\Test\\": "test/src/"
3737
}
3838
}
3939
}

phpunit.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
>
1313
<testsuites>
1414
<testsuite name="Package Test Suite">
15-
<directory suffix=".php">./tests/</directory>
15+
<directory suffix=".php">./test/</directory>
1616
</testsuite>
1717
</testsuites>
18-
</phpunit>
18+
</phpunit>
File renamed without changes.

0 commit comments

Comments
 (0)