Skip to content

Added phpunit to composer.json and necessary files. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/vendor
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ Otherwise you must point a PSR-0 autoloader to the `src` directory. Full usage [
## Example
The quickest way to get the library up and running locally is to point your browser to `example/client.php` and everything will load automatically. You can then experiment with the code as you read the documentation.

## Unit test
If you install phpunit command via composer, type the following command.

```
% cd tests
% ../vendor/bin/phpunit -c phpunit.xml
```

<a name="License"></a>
## License

Expand Down
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"php": ">=5.3.0"
},

"require-dev": {
"phpunit/phpunit": "3.7.*"
},

"autoload": {
"psr-0": {"JsonRpc": "src/"}
}
Expand Down
Loading