Ticket #112 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Phing 2.2.0 phpunit2report task crashes processing <error/> or <failure/>

Reported by: Walt Haas Assigned to: mrook
Priority: major Milestone:
Component: phing-tasks-phpunit Version: 2.2.0
Keywords: xsl Cc:

Description

When a <testcase> contains an <error> or <failure>, a bug in phpunit2-[no]frames.xsl causes the XSLT conversion to fail. The patches are:

diff -C 5 -r1.1 phpunit2-frames.xsl
*** phpunit2-frames.xsl 2007/05/14 02:27:25     1.1
--- phpunit2-frames.xsl 2007/05/14 02:28:04
***************
*** 648,657 ****
--- 648,658 ----
  <!--
      template that will convert a carriage return into a br tag
      @param word the text from which to convert CR to BR tag
  -->
  <xsl:template name="br-replace">
+     <xsl:param name="word"/>
      <xsl:choose>
           <xsl:when test="contains($word,'&#x0A;')">
               <xsl:value-of select="substring-before($word,'&#x0A;')"/>
               <br />
               <xsl:call-template name="br-replace">
diff -C 5 -r1.1 phpunit2-noframes.xsl
*** phpunit2-noframes.xsl       2007/05/14 02:10:12     1.1
--- phpunit2-noframes.xsl       2007/05/14 14:07:29
***************
*** 406,415 ****
--- 406,416 ----
  <!--
      template that will convert a carriage return into a br tag
      @param word the text from which to convert CR to BR tag
  -->
  <xsl:template name="br-replace">
+     <xsl:param name="word"/>
      <xsl:choose>
           <xsl:when test="contains($word,'&#x0A;')">
               <xsl:value-of select="substring-before($word,'&#x0A;')"/>
               <br />
               <xsl:call-template name="br-replace">

Attachments

Change History

05/14/07 20:33:55 changed by mrook

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r193, thanks!


Add/Change #112 (Phing 2.2.0 phpunit2report task crashes processing <error/> or <failure/>)




Action