Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 11, 2018. It is now read-only.

Commit a1ff312

Browse files
author
Spomky
committed
PSR-0 to PSR-4 Autoloading
* PSR-0 => PSR-4 * PHP 5.6 tests added * PHPUnit 4.x used instead of the version used by Travis-CI * HHVM test badge added
1 parent d81337e commit a1ff312

33 files changed

+13
-7
lines changed

.travis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ php:
44
- 5.3
55
- 5.4
66
- 5.5
7+
- 5.6
78
- hhvm
89

9-
matrix:
10-
allow_failures:
11-
- php: hhvm
12-
1310
before_script:
1411
- curl -s http://getcomposer.org/installer | php
1512
- php composer.phar --dev install
13+
14+
script:
15+
- vendor/bin/phpunit

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ OAuth2 Server Implementation
22
============================
33

44
[![Build Status](https://secure.travis-ci.org/FriendsOfSymfony/oauth2-php.png?branch=master)](http://travis-ci.org/FriendsOfSymfony/oauth2-php)
5+
[![HHVM Status](http://hhvm.h4cc.de/badge/FriendsOfSymfony/oauth2-php.svg)](http://hhvm.h4cc.de/package/FriendsOfSymfony/oauth2-php)
56

67
This library now implements draft 20 of OAuth 2.0.
78
The client is still only draft-10.
@@ -10,7 +11,7 @@ This version of oauth2-php is a fork of https://github.com/quizlet/oauth2-php wi
1011

1112
- Namespaced
1213
- No more require(_once)
13-
- [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) autoloading compatible
14+
- [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) autoloading compatible
1415
- Uses [HttpFoundation](https://github.com/symfony/HttpFoundation) Request and Response for input/output
1516
- More testable design
1617
- Better test coverage

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@
1919
"php": ">=5.3.2",
2020
"symfony/http-foundation": "~2.0"
2121
},
22+
"require-dev": {
23+
"phpunit/phpunit": "~4.0"
24+
},
2225
"autoload": {
23-
"psr-0": { "OAuth2": "lib/" }
26+
"psr-4": { "OAuth2\\": "lib/" }
27+
},
28+
"autoload-dev": {
29+
"psr-4": { "OAuth2\\Tests\\": "tests/" }
2430
},
2531
"extra": {
2632
"branch-alias": {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)