public
Description: My mirror of phpspec
Homepage: http://www.phpspec.org/
Clone URL: git://github.com/tedkulp/phpspec.git
Miscellaneous cleanups for 0.2.0stable

git-svn-id: http://phpspec.googlecode.com/svn/trunk@176 
d6e91ea2-e33a-0410-98df-1d493bd67c58
padraic.brady (author)
Wed Jan 09 04:21:49 -0800 2008
commit  9a5c317dcb82a3b6cc9da677676260439a083d9b
tree    4584ab0b5ca9bc9096d30ca0731fdbe4e6d186da
parent  c47914d9a26ca65604d9e95b89eedcdf9c84e437
...
44
45
46
47
48
 
 
49
50
51
...
200
201
202
203
 
 
 
 
 
 
204
205
206
...
213
214
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
217
218
 
 
219
220
221
...
44
45
46
 
 
47
48
49
50
51
...
200
201
202
 
203
204
205
206
207
208
209
210
211
...
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
 
 
236
237
238
239
240
0
@@ -44,8 +44,8 @@ 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.0beta" /> <!-- VERSION FOR EDITING -->
0
- <property name="spec.stability" value="beta" />
0
+ <property name="spec.version" value="0.2.0" /> <!-- 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
     <property name="spec.svn.tag" value="HEAD" />
0
@@ -200,7 +200,12 @@ Other Targets:
0
             <dependencies>
0
                 <php minimum_version="5.2.0" />
0
                 <pear minimum_version="1.6.0" />
0
- <!--extension name="spl" /-->
0
+ <package name="Console_Color"
0
+ channel="pear.php.net"
0
+ minimum_version="1.6.0" />
0
+ <package name="Text_Diff"
0
+ channel="pear.php.net"
0
+ minimum_version="1.6.0" />
0
             </dependencies>
0
             
0
             <dirroles key="scripts">script</dirroles>
0
@@ -213,9 +218,23 @@ Other Targets:
0
                 <install as="phpspec" name="scripts/phpspec" />
0
                 <install as="phpspec.bat" name="scripts/phpspec.bat" />
0
             </release>
0
+
0
+ <changelog version="0.2.0" date="2008-01-09" license="LGPL">
0
+ * Added support for HTML reporting output
0
+ * Added support for executing specs from a HTTP Runner
0
+ * Thanks to Modmac
0
+ * Committed three patches courtesy of KUBO Atsuhiro fixing
0
+ several issues, include one reporting bug
0
+ * Included Japanese translation of the manual courtesy
0
+ of TAKAGI Masahiro
0
+ * Refactored Runner logic into PHPSpec_Runner class
0
+ * Added API Docs to documentation directory
0
+ * Cleaned up and documented Console and HTTP options in
0
+ a new manual chapter
0
+ </changelog>
0
             
0
- <changelog version="${spec.version}" date="${date}" license="LGPL">
0
- This is a DEVEL release for testing and
0
+ <changelog version="0.2.0beta" date="2008-01-06" license="LGPL">
0
+ This is a BETA release for testing and
0
                 feedback only.
0
             </changelog>
0
             
...
123
124
125
126
 
 
 
 
 
 
 
127
128
129
...
123
124
125
 
126
127
128
129
130
131
132
133
134
135
0
@@ -123,7 +123,13 @@ class PHPSpec_Console_Getopt
0
             }
0
         }
0
         if (!is_null($encountered)) {
0
- $this->_options[$encountered] = true;
0
+ $parts = explode('=', $encountered);
0
+ if (count($parts) == 1) {
0
+ $this->_options[$encountered] = true;
0
+ } elseif (count($parts) == 2) {
0
+ $encountered = $parts[0];
0
+ $this->_options[$encountered] = $parts[1];
0
+ }
0
         }
0
     }
0
 
...
19
20
21
 
22
23
24
...
42
43
44
 
45
46
47
...
104
105
106
107
 
108
109
110
 
 
 
 
111
112
113
...
140
141
142
143
 
144
145
146
 
147
148
149
 
150
151
152
...
19
20
21
22
23
24
25
...
43
44
45
46
47
48
49
...
106
107
108
 
109
110
111
 
112
113
114
115
116
117
118
...
145
146
147
 
148
149
150
 
151
152
153
 
154
155
156
157
0
@@ -19,6 +19,7 @@ class PHPSpec_Runner_Reporter_Html extends PHPSpec_Runner_Reporter {
0
   {
0
         if (!$this->_headerSent) {
0
      $this->renderHeader();
0
+ echo '<div id="symbols">';
0
      $this->_headerSent = true;
0
         }
0
         switch ($symbol) {
0
@@ -42,6 +43,7 @@ class PHPSpec_Runner_Reporter_Html extends PHPSpec_Runner_Reporter {
0
   public function toString($specs = false)
0
   {
0
     if ($this->_headerSent) {
0
+ echo '</div>';
0
      ob_start();
0
         } else {
0
             ob_start();
0
@@ -104,10 +106,13 @@ class PHPSpec_Runner_Reporter_Html extends PHPSpec_Runner_Reporter {
0
           background-color:red;
0
           color:white;
0
         }
0
- #summary,#errors,#specdoc,#failures,#exceptions,#pending{
0
+ #symbols,#summary,#errors,#specdoc,#failures,#exceptions,#pending{
0
           margin:4px;
0
           padding:4px;
0
- }
0
+ }
0
+ #symbols {
0
+ background-color: #000000;
0
+ }
0
         #errors,#specdoc,#failures,#exceptions,#pending{          
0
           background-color:#fffff7;
0
           border:1px solid #d5d4c5;
0
@@ -140,13 +145,13 @@ class PHPSpec_Runner_Reporter_Html extends PHPSpec_Runner_Reporter {
0
           font-size:0.8em;
0
          white-space: pre;
0
         }
0
- span .passsymbol {
0
+ .passsymbol {
0
                     color: green;
0
                 }
0
- span .failsymbol {
0
+ .failsymbol {
0
                     color: red;
0
                 }
0
- span .pendingsymbol {
0
+ .pendingsymbol {
0
                     color: yellow;
0
                 }
0
       </style>      

Comments

    No one has commented yet.