Skip to content

Commit 1de5202

Browse files
committed
Merge branch 'master' of github.com:elicoten/AspectMock
2 parents 9370234 + 900ecef commit 1de5202

File tree

11 files changed

+368
-234
lines changed

11 files changed

+368
-234
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: php
22

33
php:
4-
- 5.4
54
- 5.5
5+
- 5.6
6+
- 7.0
67

78
before_script:
89
- stty cols 160

CHANGELOG.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,51 @@
11
# Changelog
22

3-
#### 0.5.2
3+
#### 0.5.5
4+
5+
* compatible with Symfony3 and PHP7
6+
7+
#### 0.5.4
8+
9+
* Improved namespace handling
10+
* Added ability to display actually passed parameter in the error message
11+
* Fixed counting of dynamic class methods (#24)
12+
* Fixes for functions that have a brace as default on parametersi
13+
* Replace return with yield when docComments returns Generator
14+
15+
16+
#### 0.5.3
17+
18+
* Updated to goaop/framework 0.6.x and codeception 2.1
419

5-
* updated to goaop/framework 0.6.x and codeception 2.1
620

721
#### 0.5.1
822

9-
* Fixed strict errors for func verifier *2014-10-16*
23+
* Fixed strict errors for func verifier
1024

1125

1226
#### 0.5.0
1327

14-
* test::ns() method removed *2014-10-10*
15-
* Mocking functions implemented with test::func method *2014-10-10*
16-
* Fixed mocking functions with arguments passed by reference #34 by @tampe125 *2014-10-09*
17-
* Fixed passing arguments by reference in InstanceProxy. Thanks to @tampe125. Issue #39 *2014-10-08*
18-
* Debug mode can be disabled in options with debug => false *2014-10-08*
28+
* `test::ns` method removed
29+
* Mocking functions implemented with `test::func` method
30+
* Fixed mocking functions with arguments passed by reference (#34)
31+
* Fixed passing arguments by reference in InstanceProxy
32+
* Debug mode can be disabled in options with `debug => false`
1933
* Updated to Go\Aop 0.5.0
2034

35+
2136
#### 0.5.0-beta 05/14/2014
2237

23-
* moved to Go\Aop 0.5.x-dev
38+
* Moved to Go\Aop 0.5.x-dev
2439

2540

2641
#### 0.4.2 05/09/2014
2742

28-
* depdendency on AspectMock ~0.4.0
43+
* Depdendency on AspectMock ~0.4.0
44+
2945

3046
#### 0.4.1
3147

3248
* RoboFile
33-
* Verify invocation arguments with closures @gchaincl
34-
* Verify invocation arguments with closures by @gchaincl
35-
* better support for traits by @andyfowler
49+
* Verify invocation arguments with closures
50+
* Verify invocation arguments with closures
51+
* Vetter support for traits

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,19 @@ AspectMock
22
==========
33

44
AspectMock is not an ordinary PHP mocking framework.
5-
With the power of Aspect Oriented programming and the awesome [Go-AOP](https://github.com/lisachenko/go-aop-php) library,
5+
With the power of Aspect Oriented programming and the awesome [Go-AOP](https://github.com/goaop/framework) library,
66
AspectMock allows you to stub and mock practically anything in your PHP code!
77

88
**Documentation** | [Test Doubles Builder](https://github.com/Codeception/AspectMock/blob/master/docs/Test.md) | [ClassProxy](https://github.com/Codeception/AspectMock/blob/master/docs/ClassProxy.md) | [InstanceProxy](https://github.com/Codeception/AspectMock/blob/master/docs/InstanceProxy.md) | [FuncProxy](https://github.com/Codeception/AspectMock/blob/master/docs/FuncProxy.md)
99

10-
**Stability**: alpha
11-
1210
[![Build Status](https://travis-ci.org/Codeception/AspectMock.png?branch=master)](https://travis-ci.org/Codeception/AspectMock)
1311
[![Latest Stable Version](https://poser.pugx.org/codeception/aspect-mock/v/stable.png)](https://packagist.org/packages/codeception/aspect-mock)
14-
[![Latest Unstable Version](https://poser.pugx.org/codeception/aspect-mock/v/unstable.png)](https://packagist.org/packages/codeception/aspect-mock)
12+
[![PHP 7 ready](http://php7ready.timesplinter.ch/Codegyre/Robo/badge.svg)](https://travis-ci.org/Codegyre/Robo)
13+
1514

1615
## Motivation
1716

18-
PHP as a language that was not designed to be testable. Really.
17+
PHP is a language that was not designed to be testable. Really.
1918
How would you fake the `time()` function to produce the same result for each test call?
2019
Is there any way to stub a static method of a class? Can you redefine a class method at runtime?
2120
Dynamic languages like Ruby or JavaScript allow us to do this.

RoboFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ public function test()
8787
exit;
8888
}
8989
}
90-
}
90+
}

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.3
1+
0.5.5

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"php": ">=5.4.0",
1717
"goaop/framework": "0.6.*",
18-
"symfony/finder": "~2.4"
18+
"symfony/finder": "~2.4|~3.0"
1919
},
2020
"require-dev": {
2121
"codeception/base": "~2.1",

0 commit comments

Comments
 (0)