Skip to content

Commit 5ef1a05

Browse files
committed
PHPUnit, implementation started
1 parent eb9dafa commit 5ef1a05

File tree

7 files changed

+734
-240
lines changed

7 files changed

+734
-240
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"role": "Developer of UserData package"
2727
}
2828
],
29+
"minimum-stability": "beta",
2930
"require": {
3031
"php": ">=5.4.0",
3132
"ext-reflection": "*",
@@ -37,7 +38,7 @@
3738
"require-dev": {
3839
"symfony/http-foundation": "~2.1",
3940
"predis/predis": "0.8.*@dev",
40-
"phpunit/phpunit": "4.4.*"
41+
"phpunit/phpunit": "~4.4"
4142
},
4243
"suggest": {
4344
"symfony/http-foundation": "Allows using the Symfony Session storage backend.",

phpunit.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit bootstrap="tests/bootstrap.php" verbose="true">
3+
<testsuites>
4+
<testsuite name="Unit">
5+
<directory>tests/Unit</directory>
6+
</testsuite>
7+
</testsuites>
8+
<filter>
9+
<whitelist>
10+
<directory suffix=".php">src/</directory>
11+
<exclude>
12+
<file>src/OAuth/bootstrap.php</file>
13+
<file>src/OAuth/Common/Exception/Exception.php</file>
14+
<file>src/OAuth/Common/Http/Exception/TokenResponseException.php</file>
15+
<file>src/OAuth/Common/Storage/Exception/StorageException.php</file>
16+
<file>src/OAuth/Common/Storage/Exception/TokenNotFoundException.php</file>
17+
<file>src/OAuth/Common/Token/Exception/ExpiredTokenException.php</file>
18+
<file>src/OAuth/OAuth1/Signature/Exception/UnsupportedHashAlgorithmException.php</file>
19+
<file>src/OAuth/OAuth2/Service/Exception/InvalidScopeException.php</file>
20+
<file>src/OAuth/OAuth2/Service/Exception/MissingRefreshTokenException.php</file>
21+
<file>src/OAuth/OAuth2/Token/StdOAuth2Token.php</file>
22+
</exclude>
23+
</whitelist>
24+
</filter>
25+
<php>
26+
<env name="redis_host" value="127.0.0.1"/>
27+
<env name="redis_port" value="6379"/>
28+
</php>
29+
</phpunit>

0 commit comments

Comments
 (0)