<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/simpletest/patches/" rel="alternate"/><link href="https://sourceforge.net/p/simpletest/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/simpletest/patches/</id><updated>2013-09-30T15:23:47.648000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>#47 Fix select tag handling and parsing.</title><link href="https://sourceforge.net/p/simpletest/patches/47/?limit=25#9707" rel="alternate"/><published>2013-09-30T15:23:47.648000Z</published><updated>2013-09-30T15:23:47.648000Z</updated><author><name>Perrick Penet</name><uri>https://sourceforge.net/u/pp11/</uri></author><id>https://sourceforge.net6be8b97c4e5a1243e45e60a5f2399321e9c42fb0</id><summary type="html">&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;</summary></entry><entry><title>Fix select tag handling and parsing.</title><link href="https://sourceforge.net/p/simpletest/patches/47/" rel="alternate"/><published>2013-01-25T19:47:32Z</published><updated>2013-01-25T19:47:32Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netefdcdb4a986f05a8877505fa36f46c85cc351eec</id><summary type="html">&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;</summary></entry><entry><title>Added _htmlEntities() in my_reporter.php</title><link href="https://sourceforge.net/p/simpletest/patches/46/" rel="alternate"/><published>2011-12-07T11:38:48Z</published><updated>2011-12-07T11:38:48Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net06e9e6887d5e3b5447e6321282061901632a980e</id><summary type="html">&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;</summary></entry><entry><title>Restore working directory inside the shutdown function</title><link href="https://sourceforge.net/p/simpletest/patches/45/" rel="alternate"/><published>2011-10-09T10:49:38Z</published><updated>2011-10-09T10:49:38Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netc8de0f37e83d27354242890db7d5d8142f717143</id><summary type="html">&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;</summary></entry><entry><title>Coverage extension updated</title><link href="https://sourceforge.net/p/simpletest/patches/44/" rel="alternate"/><published>2011-08-16T14:16:19Z</published><updated>2011-08-16T14:16:19Z</updated><author><name>Guillermo P. Bonvehi</name><uri>https://sourceforge.net/u/gbonvehi/</uri></author><id>https://sourceforge.net9b64e3b43cd2bbefc1b8c74a75447af177fe35a7</id><summary type="html">&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;</summary></entry><entry><title>PHP 5.3.2 emits deprecation warnings upon use of "&amp;new"</title><link href="https://sourceforge.net/p/simpletest/patches/43/" rel="alternate"/><published>2010-07-26T11:05:58Z</published><updated>2010-07-26T11:05:58Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net0476327cee2014837c81e840eeb6760a4596de3a</id><summary type="html">&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;</summary></entry><entry><title>Make SimpleBrowser::post() accepting SimpleMultipartEncoding</title><link href="https://sourceforge.net/p/simpletest/patches/42/" rel="alternate"/><published>2010-03-22T12:42:47Z</published><updated>2010-03-22T12:42:47Z</updated><author><name>Anatoly Lapshin</name><uri>https://sourceforge.net/u/opentitan/</uri></author><id>https://sourceforge.nete149f7567b64b8ee0f987d8d46e3eb1f0b5da1de</id><summary type="html">&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;</summary></entry><entry><title>Fix action when submitting GET forms (remove request)</title><link href="https://sourceforge.net/p/simpletest/patches/41/" rel="alternate"/><published>2009-12-14T18:27:06Z</published><updated>2009-12-14T18:27:06Z</updated><author><name>daniel hahler</name><uri>https://sourceforge.net/u/blueyed/</uri></author><id>https://sourceforge.net9741f8d9816f8e77526a017a46fb026bebc93996</id><summary type="html">&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;</summary></entry><entry><title>web_tester: allow passing Expectation to assertText</title><link href="https://sourceforge.net/p/simpletest/patches/40/" rel="alternate"/><published>2009-12-14T18:12:55Z</published><updated>2009-12-14T18:12:55Z</updated><author><name>daniel hahler</name><uri>https://sourceforge.net/u/blueyed/</uri></author><id>https://sourceforge.net5e01d7d923118f277be913eaade2f2c07ae3b81b</id><summary type="html">&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;</summary></entry><entry><title>Handle UTF-8 &amp;nbsp; correctly in Simplepage::normalise</title><link href="https://sourceforge.net/p/simpletest/patches/39/" rel="alternate"/><published>2009-12-11T13:40:43Z</published><updated>2009-12-11T13:40:43Z</updated><author><name>daniel hahler</name><uri>https://sourceforge.net/u/blueyed/</uri></author><id>https://sourceforge.net7486b3f35fe275c91c60154725f03226c19064af</id><summary type="html">&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;</summary></entry></feed>