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

Commit a050203

Browse files
committed
Merge branch 'release/0.2.0'
2 parents 9f99546 + 046a493 commit a050203

File tree

209 files changed

+13970
-9921
lines changed

Some content is hidden

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

209 files changed

+13970
-9921
lines changed

.gitattributes

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.gitattributes export-ignore
2-
.gitignore export-ignore
3-
.travis.* export-ignore
4-
test export-ignore
1+
/.gitattributes export-ignore
2+
/.gitignore export-ignore
3+
/.travis.* export-ignore
4+
/test/ export-ignore

.php_cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
$finder = Symfony\CS\Finder\DefaultFinder::create()->in(__DIR__);
4+
5+
return Symfony\CS\Config\Config::create()
6+
->fixers(
7+
array(
8+
'-concat_without_spaces',
9+
'-new_with_braces',
10+
'concat_with_spaces',
11+
'ordered_use',
12+
)
13+
)
14+
->finder($finder);

CHANGELOG.md

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

3+
## 0.2.0 (2014-11-18)
4+
5+
- **[BC BREAK]** Renamed IDs to labels.
6+
- **[NEW]** Verify no interaction ([#27]).
7+
- **[NEW]** Manual constructor calling ([#36], [#46]).
8+
- **[NEW]** Setters for labels ([#35]).
9+
- **[NEW]** [Peridot] integration ([#50]).
10+
- **[NEW]** [Pho] integration ([#51]).
11+
- **[NEW]** [SimpleTest] integration ([#20]).
12+
- **[FIXED]** Trait mocking is now working ([#42], [#49]).
13+
- **[FIXED]** Stubbing interface bugs ([#53]).
14+
- **[IMPROVED]** Better assertion messages ([#41]).
15+
- **[IMPROVED]** Generator spies under HHVM ([#29]).
16+
- **[IMPROVED]** Better mock definition equality checking ([#47]).
17+
- **[IMPROVED]** Throw an exception when passing the wrong types to `inOrder()`
18+
([#52]).
19+
- **[IMPROVED]** Magic 'self' parameter detection ([#48]).
20+
21+
[Peridot]: https://github.com/peridot-php/peridot
22+
[Pho]: https://github.com/danielstjules/pho
23+
[SimpleTest]: https://github.com/lox/simpletest
24+
[#20]: https://github.com/eloquent/phony/issues/20
25+
[#27]: https://github.com/eloquent/phony/issues/27
26+
[#29]: https://github.com/eloquent/phony/issues/29
27+
[#35]: https://github.com/eloquent/phony/issues/35
28+
[#36]: https://github.com/eloquent/phony/issues/36
29+
[#41]: https://github.com/eloquent/phony/issues/41
30+
[#42]: https://github.com/eloquent/phony/issues/42
31+
[#46]: https://github.com/eloquent/phony/issues/46
32+
[#47]: https://github.com/eloquent/phony/issues/47
33+
[#48]: https://github.com/eloquent/phony/issues/48
34+
[#49]: https://github.com/eloquent/phony/issues/49
35+
[#50]: https://github.com/eloquent/phony/issues/50
36+
[#51]: https://github.com/eloquent/phony/issues/51
37+
[#52]: https://github.com/eloquent/phony/issues/52
38+
[#53]: https://github.com/eloquent/phony/issues/53
39+
40+
## 0.1.1 (2014-10-26)
41+
42+
- **[IMPROVED]** Performance improvements when repeatedly mocking the same
43+
types ([#44]).
44+
- **[IMPROVED]** Performance improvements when mocking large classes ([#44]).
45+
- **[IMPROVED]** Improved exception message when mocking an undefined type
46+
([#40]).
47+
48+
[#40]: https://github.com/eloquent/phony/issues/40
49+
[#44]: https://github.com/eloquent/phony/issues/44
50+
351
## 0.1.0 (2014-10-21)
452

553
- **[NEW]** Initial implementation.

README.md

Lines changed: 2 additions & 2 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.1.0][version-image]][Semantic versioning]
5+
[![The most recent stable version is 0.2.0][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,7 +11,7 @@
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.1.0-yellow.svg "This project uses semantic versioning"
14+
[version-image]: http://img.shields.io/:semver-0.2.0-yellow.svg "This project uses semantic versioning"
1515

1616
## Installation and documentation
1717

composer.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@
1717
"sebastian/exporter": "~1"
1818
},
1919
"require-dev": {
20+
"athletic/athletic": "~0.1",
2021
"counterpart/counterpart": "~1",
22+
"danielstjules/pho": "~1",
23+
"eloquent/fixie": "~0.2.0@dev",
2124
"hamcrest/hamcrest-php": "~1",
25+
"icecave/isolator": "~3",
2226
"mockery/mockery": "~0",
27+
"peridot-php/peridot": "~1",
2328
"phake/phake": "~1",
2429
"phpspec/prophecy": "~1",
2530
"phpunit/phpunit": "~4",
@@ -31,7 +36,22 @@
3136
},
3237
"files": [
3338
"src/functions.php",
34-
"src/Phpunit/functions.php"
39+
"src/Pho/functions.php",
40+
"src/Phpunit/functions.php",
41+
"src/Simpletest/functions.php"
3542
]
43+
},
44+
"autoload-dev": {
45+
"psr-4": {
46+
"Eloquent\\Phony\\": ["test/src", "test/benchmarks"]
47+
},
48+
"files": [
49+
"test/src/TestClassOldConstructor.php"
50+
]
51+
},
52+
"extra": {
53+
"branch-alias": {
54+
"dev-develop": "0.1.x-dev"
55+
}
3656
}
3757
}

0 commit comments

Comments
 (0)