Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit 4818339

Browse files
committed
Merge branch 'release/0.2.1'
2 parents ba95aa0 + b6b6e08 commit 4818339

File tree

378 files changed

+2662
-773
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

378 files changed

+2662
-773
lines changed

.php_cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ return Symfony\CS\Config\Config::create()
66
->fixers(
77
array(
88
'-concat_without_spaces',
9-
'-new_with_braces',
9+
'-double_arrow_multiline_whitespaces',
10+
'-empty_return',
11+
'-phpdoc_separation',
1012
'concat_with_spaces',
1113
'ordered_use',
1214
)

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ php:
99
- hhvm-nightly
1010
matrix:
1111
allow_failures:
12+
- php: hhvm
1213
- php: hhvm-nightly
1314
fast_finish: true
1415
install:
1516
- composer selfupdate --no-interaction
1617
- composer install --no-interaction --no-progress --ignore-platform-reqs
17-
script: vendor/bin/phpunit
18+
script: "ls test/suite | xargs -I % sh -c 'echo; echo Testing % namespace...; echo; phpunit --stop-on-failure test/suite/%'"

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Phony changelog
22

3+
## 0.2.1 (2015-02-28)
4+
5+
- **[FIXED]** Cardinality checks for `received()` now work as expected ([#54]).
6+
- **[FIXED]** Methods names are correctly treated as case-insensitive ([#58]).
7+
- **[FIXED]** Can mock an interface that extends `Traversable` ([#59]).
8+
- **[FIXED]** Calling of trait constructors ([#61]).
9+
10+
[#54]: https://github.com/eloquent/phony/issues/54
11+
[#58]: https://github.com/eloquent/phony/issues/58
12+
[#59]: https://github.com/eloquent/phony/issues/59
13+
[#61]: https://github.com/eloquent/phony/issues/61
14+
315
## 0.2.0 (2014-11-18)
416

517
- **[BC BREAK]** Renamed IDs to labels.

CONTRIBUTING.md

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,32 @@ changes.
88

99
All PHP code must adhere to the [PSR-2] standards.
1010

11+
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
12+
1113
## Branching and pull requests
1214

1315
As a guideline, please follow this process:
1416

15-
1. [Fork the repository].
16-
2. Create a topic branch for the change:
17-
- New features should branch from **develop**.
18-
- Bug fixes to existing versions should branch from **master**.
19-
- Please ensure the branch is clearly labelled as a feature or fix.
20-
3. Make the relevant changes.
21-
4. [Squash] commits if necessary.
22-
4. Submit a pull request to the **develop** branch.
23-
24-
Please note this is a general guideline only. For more information on the
25-
branching structure please see the [git-flow cheatsheet].
26-
27-
<!-- References -->
17+
1. [Fork the repository].
18+
2. Create a topic branch for the change, branching from **develop**
19+
(`git checkout -b branch-name develop`).
20+
3. Make the relevant changes.
21+
4. [Squash] commits if necessary (`git rebase -i develop`).
22+
5. Submit a pull request to the **develop** branch.
2823

2924
[Fork the repository]: https://help.github.com/articles/fork-a-repo
30-
[git-flow cheatsheet]: http://danielkummer.github.com/git-flow-cheatsheet/
31-
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
3225
[Squash]: http://git-scm.com/book/en/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages
26+
27+
## Tests
28+
29+
- Run the tests with `vendor/bin/phpunit path/to/tests`, or simply
30+
`vendor/bin/phpunit` to run the entire suite.
31+
- Generate a coverage report with
32+
`vendor/bin/phpunit -c phpunit.coverage.xml path/to/tests`, or simply
33+
`vendor/bin/phpunit -c phpunit.coverage.xml` to generate coverage for the
34+
entire suite. The coverage report will be created at
35+
`artifacts/tests/coverage/index.html`.
36+
- Run the integration tests with `test/integration/run-all`. Each test suite has
37+
one passing, and one failing test. This demonstrates *Phony*'s output.
38+
- Run the benchmarks with `vendor/bin/athletic -p test/benchmarks`. This
39+
compares *Phony*'s performance with other mocking frameworks.

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright © 2015 Erin Millard
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
*Mocks, stubs, and spies for PHP.*
44

5-
[![The most recent stable version is 0.2.0][version-image]][Semantic versioning]
5+
[![The most recent stable version is 0.2.1][version-image]][Semantic versioning]
66
[![Current build status image][build-image]][Current build status]
77
[![Current coverage status image][coverage-image]][Current coverage status]
88

@@ -11,23 +11,19 @@
1111
[coverage-image]: http://img.shields.io/coveralls/eloquent/phony/develop.svg "Current test coverage for the develop branch"
1212
[Current coverage status]: https://coveralls.io/r/eloquent/phony
1313
[Semantic versioning]: http://semver.org/
14-
[version-image]: http://img.shields.io/:semver-0.2.0-yellow.svg "This project uses semantic versioning"
14+
[version-image]: http://img.shields.io/:semver-0.2.1-yellow.svg "This project uses semantic versioning"
1515

1616
## Installation and documentation
1717

1818
- Available as [Composer] package [eloquent/phony].
1919

20-
<!--
21-
- [API documentation] available.
22-
-->
23-
24-
[API documentation]: http://lqnt.co/phony/artifacts/documentation/api/
2520
[Composer]: http://getcomposer.org/
2621
[eloquent/phony]: https://packagist.org/packages/eloquent/phony
2722

2823
## Here be dragons
2924

30-
No documentation exists yet, but check out the [functional tests] for a few
31-
examples.
25+
Documentation is coming, you can see [progress on the feature/docs branch]. Also
26+
check out the [functional tests] for working examples.
3227

3328
[functional tests]: test/suite/FunctionalTest.php
29+
[progress on the feature/docs branch]: https://github.com/eloquent/phony/blob/feature/docs/doc/index.md

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"athletic/athletic": "~0.1",
2121
"counterpart/counterpart": "~1",
2222
"danielstjules/pho": "~1",
23+
"eloquent/asplode": "~2",
2324
"eloquent/fixie": "~0.2.0@dev",
2425
"hamcrest/hamcrest-php": "~1",
2526
"icecave/isolator": "~3",
@@ -51,7 +52,7 @@
5152
},
5253
"extra": {
5354
"branch-alias": {
54-
"dev-develop": "0.1.x-dev"
55+
"dev-develop": "0.3.x-dev"
5556
}
5657
}
5758
}

0 commit comments

Comments
 (0)