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

Commit 445cf27

Browse files
committed
Merge branch 'release/0.1.1'
2 parents 9f99546 + 86aab9d commit 445cf27

File tree

96 files changed

+5592
-4309
lines changed

Some content is hidden

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

96 files changed

+5592
-4309
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

CHANGELOG.md

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

3+
## 0.1.1 (2014-10-26)
4+
5+
- **[IMPROVED]** Performance improvements when repeatedly mocking the same
6+
types ([#44]).
7+
- **[IMPROVED]** Performance improvements when mocking large classes ([#44]).
8+
- **[IMPROVED]** Improved exception message when mocking an undefined type
9+
([#40]).
10+
11+
[#40]: https://github.com/eloquent/phony/issues/40
12+
[#44]: https://github.com/eloquent/phony/issues/44
13+
314
## 0.1.0 (2014-10-21)
415

516
- **[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.1.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,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.1.1-yellow.svg "This project uses semantic versioning"
1515

1616
## Installation and documentation
1717

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
},
1919
"require-dev": {
2020
"counterpart/counterpart": "~1",
21+
"eloquent/fixie": "~0.2.0@dev",
2122
"hamcrest/hamcrest-php": "~1",
23+
"icecave/isolator": "~3",
2224
"mockery/mockery": "~0",
2325
"phake/phake": "~1",
2426
"phpspec/prophecy": "~1",
@@ -33,5 +35,10 @@
3335
"src/functions.php",
3436
"src/Phpunit/functions.php"
3537
]
38+
},
39+
"extra": {
40+
"branch-alias": {
41+
"dev-develop": "0.1.x-dev"
42+
}
3643
}
3744
}

composer.lock

Lines changed: 135 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Phony package.
5+
*
6+
* Copyright © 2014 Erin Millard
7+
*
8+
* For the full copyright and license information, please view the LICENSE file
9+
* that was distributed with this source code.
10+
*/
11+
12+
namespace Eloquent\Phony\Feature\Exception;
13+
14+
use Exception;
15+
16+
/**
17+
* The specified feature is undefined.
18+
*
19+
* @internal
20+
*/
21+
final class UndefinedFeatureException extends Exception
22+
{
23+
/**
24+
* Construct a new undefined feature exception.
25+
*
26+
* @param string $feature The feature.
27+
* @param Exception|null $cause The cause, if available.
28+
*/
29+
public function __construct($feature, Exception $cause = null)
30+
{
31+
$this->feature = $feature;
32+
33+
parent::__construct(
34+
sprintf('Undefined feature %s.', var_export($feature, true)),
35+
0,
36+
$cause
37+
);
38+
}
39+
40+
/**
41+
* Get the feature.
42+
*
43+
* @return string The feature.
44+
*/
45+
public function feature()
46+
{
47+
return $this->feature;
48+
}
49+
50+
private $feature;
51+
}

0 commit comments

Comments
 (0)