Skip to content

Commit

Permalink
Added box configuration to pack phiremock as a phar. Made a namespace…
Browse files Browse the repository at this point in the history
… fix in FileExpectations loader. Added phar file and documentation related to it.
  • Loading branch information
Mariano Custiel committed Mar 7, 2016
1 parent 55887e8 commit daa1565
Show file tree
Hide file tree
Showing 5 changed files with 184 additions and 4,295 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ This project is published in packagist, so you just need to add it as a dependen
}
```

### Phar:

You can also download the standalone phar application from [here](./phiremock.phar).

## How does it work?

Phiremock will allow you to create a stubbed version of some external service your application needs to communicate to. That can be used to avoid calling the real application during development or to setup responses to expected requests
Expand Down Expand Up @@ -160,4 +164,3 @@ Phiremock is heavily inspired by [WireMock](http://wiremock.org/), but does not
* Priorizable expectations for cases in which more than one matches the request. If more than one expectation matches the request and no priorities were set, the first match is returned.
* Allows to verify the amount of times a request was done.
* Allows to load default expectations from json files in a directory.

20 changes: 20 additions & 0 deletions box.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"directories" : [ "src" ],
"compactors": [ "Herrera\\Box\\Compactor\\Php" ],
"chmod" : "0755",
"main" : "bin/phiremock",
"output" : "phiremock.phar",
"web" : false,
"extract": false,
"stub" : true,
"files": [
"LICENSE"
],
"finder": [
{
"name": ["*.php"],
"exclude": ["Tests", "tests"],
"in": ["vendor", "."]
}
]
}
Loading

0 comments on commit daa1565

Please sign in to comment.