public
Description: My mirror of phpspec
Homepage: http://www.phpspec.org/
Clone URL: git://github.com/tedkulp/phpspec.git
* Merged branches/zend from r191 to HEAD into trunk for 0.3.0

git-svn-id: http://phpspec.googlecode.com/svn/trunk@204 
d6e91ea2-e33a-0410-98df-1d493bd67c58
padraic.brady (author)
Thu Jan 17 04:10:23 -0800 2008
commit  ddb5b5073db41f45e73689b4be1ca252547fa7dd
tree    be6f91c286a6184cd3431a60d7f5f46e38360764
parent  d220f5abad8d5f1f255527a9639e3102662f8c6d
...
44
45
46
47
 
48
49
50
...
207
208
209
 
210
211
212
...
216
217
218
 
 
 
 
 
219
220
221
...
44
45
46
 
47
48
49
50
...
207
208
209
210
211
212
213
...
217
218
219
220
221
222
223
224
225
226
227
0
@@ -44,7 +44,7 @@ Other Targets:
0
     <property name="spec.src.default" value="${project.basedir}/.." />
0
     <property name="spec.src.classpath" value="/src" />
0
     <property name="spec.name" value="PHPSpec" />
0
- <property name="spec.version" value="0.2.3" /> <!-- VERSION FOR EDITING -->
0
+ <property name="spec.version" value="0.3.0devel" /> <!-- VERSION FOR EDITING -->
0
     <property name="spec.stability" value="stable" />
0
     <property name="spec.svn.baseurl" value="http://phpspec.googlecode.com/svn/" />
0
     <property name="spec.svn.url" value="${svn.url}/trunk" />
0
@@ -207,6 +207,7 @@ Other Targets:
0
             
0
             <dirroles key="scripts">script</dirroles>
0
             <dirroles key="tests">test</dirroles>
0
+ <dirroles key="tests">specs</dirroles>
0
       <dirroles key="docs">doc</dirroles>
0
             <replacement path="scripts/phpspec" type="pear-config" from="@php_bin@" to="php_bin" />
0
             <replacement path="scripts/phpspec.bat" type="pear-config" from="@php_bin@" to="php_bin" />
0
@@ -216,6 +217,11 @@ Other Targets:
0
                 <install as="phpspec.bat" name="scripts/phpspec.bat" />
0
             </release>
0
 
0
+ <changelog version="0.3.0" date="${date}" license="LGPL">
0
+ * Added Zend Framework Context class to enable BDD
0
+ application to ZF Controller development
0
+ </changelog>
0
+
0
       <changelog version="0.2.3" date="2008-01-11" license="LGPL">
0
                 * Patched a Predicate issue courtesy KUBO Atsuhiro
0
         * Reminder to self that no regression testing coupled with
...
14
15
16
17
 
18
19
20
21
22
23
24
 
25
26
27
...
75
76
77
78
79
 
 
 
 
 
 
80
81
82
...
88
89
90
 
 
 
91
92
93
...
14
15
16
 
17
18
19
20
21
22
23
 
24
25
26
27
...
75
76
77
 
 
78
79
80
81
82
83
84
85
86
...
92
93
94
95
96
97
98
99
100
0
@@ -14,14 +14,14 @@
0
  *
0
  * @category PHPSpec
0
  * @package PHPSpec
0
- * @copyright Copyright (c) 2007 Pádraic Brady, Travis Swicegood
0
+ * @copyright Copyright (c) 2007 P�draic Brady, Travis Swicegood
0
  * @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public Licence Version 3
0
  */
0
 
0
 /**
0
  * @category PHPSpec
0
  * @package PHPSpec
0
- * @copyright Copyright (c) 2007 Pádraic Brady, Travis Swicegood
0
+ * @copyright Copyright (c) 2007 P�draic Brady, Travis Swicegood
0
  * @license http://www.gnu.org/licenses/lgpl-3.0.txt GNU Lesser General Public Licence Version 3
0
  */
0
 class PHPSpec_Runner_Example
0
@@ -75,8 +75,12 @@ class PHPSpec_Runner_Example
0
         $this->_context->clearCurrentSpecification();
0
 
0
         /**
0
- * spec execution
0
- */
0
+ * Spec execution
0
+ * *Each methods are reserved for internal stepping setup/teardown
0
+ */
0
+ if (method_exists($this->_context, 'beforeEach')) {
0
+ $this->_context->beforeEach();
0
+ }
0
         if (method_exists($this->_context, 'before')) {
0
             $this->_context->before();
0
         }
0
@@ -88,6 +92,9 @@ class PHPSpec_Runner_Example
0
 
0
         if (method_exists($this->_context, 'after')) {
0
             $this->_context->after();
0
+ }
0
+ if (method_exists($this->_context, 'afterEach')) {
0
+ $this->_context->afterEach();
0
         }
0
 
0
         /**

Comments

    No one has commented yet.