<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/simpletest/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/simpletest/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 30 Sep 2013 15:23:47 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/simpletest/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>#47 Fix select tag handling and parsing.</title><link>https://sourceforge.net/p/simpletest/patches/47/?limit=25#9707</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Do you have a test case for this issue ? If so, I'll be glad to add it sooner. Yours, Perrick&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Perrick Penet</dc:creator><pubDate>Mon, 30 Sep 2013 15:23:47 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net6be8b97c4e5a1243e45e60a5f2399321e9c42fb0</guid></item><item><title>Fix select tag handling and parsing.</title><link>https://sourceforge.net/p/simpletest/patches/47/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When a select tag has no options, it should not be submitted. Also if the contents of an attribute in a tag contains an = sign, it will not be split properly.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 25 Jan 2013 19:47:32 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netefdcdb4a986f05a8877505fa36f46c85cc351eec</guid></item><item><title>Added _htmlEntities() in my_reporter.php</title><link>https://sourceforge.net/p/simpletest/patches/46/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I found a bug, and it didn't show in the details-section of the testcase the HTML, instead the browser parsed the HTML.&lt;/p&gt;
&lt;p&gt;So I added htmlentities(), and later is saw there's already a $this-&amp;gt;_htmlEntities() so I used that instead.&lt;/p&gt;
&lt;p&gt;Here my patch.&lt;/p&gt;
&lt;p&gt;--- a/tests/simpletest/extensions/my_reporter.php&lt;br /&gt;
+++ b/tests/simpletest/extensions/my_reporter.php&lt;br /&gt;
@@ -187,7 +187,7 @@ class MyReporter extends SimpleReporter {&lt;br /&gt;
&amp;lt;div class="result"&amp;gt;PASSED&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;'.$test.'&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div class="details"&amp;gt;&lt;br /&gt;
-                               &amp;lt;em&amp;gt;'.$message.'&amp;lt;/em&amp;gt;&lt;br /&gt;
+                               &amp;lt;em&amp;gt;'.$this-&amp;gt;_htmlEntities($message).'&amp;lt;/em&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
';&lt;br /&gt;
@@ -211,7 +211,7 @@ class MyReporter extends SimpleReporter {&lt;br /&gt;
&amp;lt;div class="result"&amp;gt;FAILED&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;h3&amp;gt;'.$test.'&amp;lt;/h3&amp;gt;&lt;br /&gt;
&amp;lt;div class="details"&amp;gt;&lt;br /&gt;
-                               &amp;lt;em&amp;gt;'.$message.'&amp;lt;/em&amp;gt;&lt;br /&gt;
+                               &amp;lt;em&amp;gt;'.$this-&amp;gt;_htmlEntities($message).'&amp;lt;/em&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
';&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 07 Dec 2011 11:38:48 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net06e9e6887d5e3b5447e6321282061901632a980e</guid></item><item><title>Restore working directory inside the shutdown function</title><link>https://sourceforge.net/p/simpletest/patches/45/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Note for register_shutdown_function:&lt;br /&gt;
Working directory of the script can change inside the shutdown function under some web servers, e.g. Apache.&lt;/p&gt;
&lt;p&gt;In such cases the relative path does not work.&lt;br /&gt;
Solution: save the current working directory in autorun.php and restore it in the shutdown function simpletest_autorun().&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 09 Oct 2011 10:49:38 -0000</pubDate><guid isPermaLink="false">https://sourceforge.netc8de0f37e83d27354242890db7d5d8142f717143</guid></item><item><title>Coverage extension updated</title><link>https://sourceforge.net/p/simpletest/patches/44/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I updated the coverage extension that I found on your VCS to use new SQLite3 and also support paths with ':' in them.&lt;br /&gt;
I had to create a simple config file in order to use it (attached you can find the file I used to create the configuration file).&lt;br /&gt;
Tested under SimpleTest 1.1alpha3&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Guillermo P. Bonvehi</dc:creator><pubDate>Tue, 16 Aug 2011 14:16:19 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net9b64e3b43cd2bbefc1b8c74a75447af177fe35a7</guid></item><item><title>PHP 5.3.2 emits deprecation warnings upon use of "&amp;new"</title><link>https://sourceforge.net/p/simpletest/patches/43/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Running simpletest_1.0.1.tar.gz on PHP 5.3.2 I get lots of warnings:&lt;/p&gt;
&lt;p&gt;PHP Deprecated:  Assigning the return value of new by reference is deprecated&lt;/p&gt;
&lt;p&gt;I fixed this with a quick script:&lt;br /&gt;
grep -lR '&amp;amp;new' . | while read f; do sed 's/&amp;amp;new/new/g' &amp;lt; "$f" &amp;gt; "$f.__fixed" &amp;amp;&amp;amp; mv "$f.__fixed" "$f"; done&lt;/p&gt;
&lt;p&gt;alternatively I have supplied a patch file (attached) for your convenience.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 26 Jul 2010 11:05:58 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net0476327cee2014837c81e840eeb6760a4596de3a</guid></item><item><title>Make SimpleBrowser::post() accepting SimpleMultipartEncoding</title><link>https://sourceforge.net/p/simpletest/patches/42/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;SimpleBrowser::post() is enforcing use of SimplePostEncoding loosing all the attachments from the $parameters given.&lt;br /&gt;
The patch makes it checking for the $parameters type and keeps untouched any objects of type SimplePostEncoding and its descendants (such as SimpleMultipartEncoding), so that attachments are successfully sent.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anatoly Lapshin</dc:creator><pubDate>Mon, 22 Mar 2010 12:42:47 -0000</pubDate><guid isPermaLink="false">https://sourceforge.nete149f7567b64b8ee0f987d8d46e3eb1f0b5da1de</guid></item><item><title>Fix action when submitting GET forms (remove request)</title><link>https://sourceforge.net/p/simpletest/patches/41/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Form::getAction: clear request params if this is a GET form.&lt;/p&gt;
&lt;p&gt;This is how browsers submit a method=get form: removing any GET params from the action.&lt;br /&gt;
Only with method=post the GET params are being kept.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">daniel hahler</dc:creator><pubDate>Mon, 14 Dec 2009 18:27:06 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net9741f8d9816f8e77526a017a46fb026bebc93996</guid></item><item><title>web_tester: allow passing Expectation to assertText</title><link>https://sourceforge.net/p/simpletest/patches/40/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;This patch makes WebTestCase::assertText accept an expectation object.&lt;/p&gt;
&lt;p&gt;This is convenient for:&lt;br /&gt;
$this-&amp;gt;assertText( new PatternExpectation('~\d+ foos~') );&lt;/p&gt;
&lt;p&gt;Otherwise you'd have to use something like:&lt;br /&gt;
$this-&amp;gt;assertTrue( preg_match('~\d+ foos~', $this-&amp;gt;getBrowser()-&amp;gt;getContentAsText()) );&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">daniel hahler</dc:creator><pubDate>Mon, 14 Dec 2009 18:12:55 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net5e01d7d923118f277be913eaade2f2c07ae3b81b</guid></item><item><title>Handle UTF-8 &amp;nbsp; correctly in Simplepage::normalise</title><link>https://sourceforge.net/p/simpletest/patches/39/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Simplepage::normalise normalizes HTML, but because it uses "preg_replace('#\s+#')" it fails with a Non-breaking space ("&amp;amp;nbsp;") encoded in UTF-8 (which is 194+160 and preg_replace removes only the second byte).&lt;br /&gt;
The attached patch fixes this, if mbstrings is available and $text is valid utf8 (according to mb_check_encoding).&lt;/p&gt;
&lt;p&gt;It also adds tests.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">daniel hahler</dc:creator><pubDate>Fri, 11 Dec 2009 13:40:43 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net7486b3f35fe275c91c60154725f03226c19064af</guid></item></channel></rss>