<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Planet PHP</title><link rel="alternate" type="text/html" href="http://www.planet-php.net/"/><link rel="self" type="text/html" href="http://www.planet-php.net/atom/"/><subtitle>People blogging about PHP</subtitle><id>http://www.planet-php.net/</id><generator uri="http://planet-php.net/">
            Planet PHP Aggregator
            </generator><updated>2013-05-23T20:10:00Z</updated><link rel="hub" href="http://pubsubhubbub.appspot.com"/><entry><title type="text">Phix 0.16.0 Released</title><link rel="alternate" type="text/html" href="http://blog.stuartherbert.com/php/2013/05/23/phix-0-16-0-released/" title="Phix 0.16.0 Released"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o5I" title="Shortlink to http://blog.stuartherbert.com/php/2013/05/23/phix-0-16-0-released/"/><author><name>Stuart Herbert</name></author><id>http://blog.stuartherbert.com/php/?p=1038</id><updated>2013-05-23T20:10:00Z</updated><published>2013-05-23T20:10:00Z</published><content type="html"><![CDATA[<p><em><a href="http://phix-project.org">Phix</a> is a tool for creating and managing PHP components and tools and releasing them as PEAR packages.</em></p>
<p>I’ve pushed out Phix 0.16.0 this evening, with the following changes:</p>
<ul>
<li><em>phing build-vendor</em> now removes the component’s own code from the vendor/ folder. (We build the vendor/ folder using PEAR, which installs the component into the vendor/ folder … sigh)</li>
<li>An update to Phing changed the default behaviour of the &lt;fileset> tag, breaking backwards-compatibility.  I’ve updated our build.xml file to make the &lt;fileset> tag revert back to its original behaviour.</li>
</ul>
<p>To update your copy of Phix, please run:<br />
<code><br />
pear upgrade phix/phix4componentdev<br />
</code></p>
<p>Any problems, please let me know.</p>
]]></content></entry><entry><title type="text">UA Testing with Selenium and PHPUnit</title><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/dragonbe-php/~3/KRIWCBDP7Fg/ua-testing-with-selenium-and-phpunit.html" title="UA Testing with Selenium and PHPUnit"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o5C" title="Shortlink to http://feedproxy.google.com/~r/dragonbe-php/~3/KRIWCBDP7Fg/ua-testing-with-selenium-and-phpunit.html"/><author><name>Michelangelo van Dam</name></author><id>http://www.dragonbe.com/2013/05/ua-testing-with-selenium-and-phpunit.html</id><updated>2013-05-23T18:00:00Z</updated><published>2013-05-23T18:00:00Z</published><content type="html"><![CDATA[<br/><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">Last week I spoke at <a href="http://tek.phparch.com/" style="color: #0069d6;">php[tek] 2013</a> where I explained to people how to get started with <a href="http://www.seleniumhq.org/" style="color: #0069d6;">Selenium IDE</a> to record user interaction with the web interface, convert them to PHPUnit testcases and automatically execute them on multiple browsers on multiple platforms.</div><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">The <a href="https://joind.in/8157" style="color: #0069d6;">feedback</a> I got was awesome, you're all a great crowd! But on <a href="https://twitter.com/dragonbe" style="color: #0069d6;">twitter</a> I also received a bunch of questions regarding how to set up multiple platforms and why I used Windows in my presentation to deploy to.</div><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">So today I deceided it was time to write a full article on this subject.</div><h2 style="color: #404040; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 24px; line-height: 36px; margin: 0px; padding: 0px;">What is Selenium?</h2><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">Selenium is a tool that allows you to continuously test user interfaces of web applications. The most common usages for Selenium testing are the following:</div><ul style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px;"><li>testing elements are (not) on the web interface</li><li>users can't break out a certain flow on the web interface</li><li>calculated values are correct after modification</li><li>errors appear on screen when mistakes are made by users</li><li>reported issues are valid</li></ul><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">In general we call these type of tests <strong>User Acceptance Tests</strong> or <strong>UAT</strong> and are all focused from the point of the end-user, the person using the web interface to accomplish a certain goal.</div><h2 style="color: #404040; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 24px; line-height: 36px; margin: 0px; padding: 0px;">Why are they important?</h2><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">UAT have their own right to exist. Just like regular unit, performance and stress tests they have their own agenda and are adressing a particular part of your application that needs testing. All to prevent your customers/visitors from finding issues, bugs or just unfunctional pieces on your web application and loose their trust in your products or services.</div><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">Therefor it's always good to invest in the "visibile" part of your web application. Especially when using javascript, you want to ensure it always works as intended.</div><h2 style="color: #404040; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 24px; line-height: 36px; margin: 0px; padding: 0px;">Disclaimer</h2><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">Selenium tests are in no way a replacement for regular unit tests. Their focus is on generated output of your web application within a browser. Unit tests are still necessary to ensure the logic of your application is not broken when making modifications or adding new functionality!</div><h2 style="color: #404040; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 24px; line-height: 36px; margin: 0px; padding: 0px;">Setting things up</h2><div style="color: #737373; font-family: 'Helvetica Neue', Helvetica, 'Hiragino Sans GB', Arial, sans-serif; font-size: 13px; line-height: 18px; margin-bottom: 9px; padding: 0px;">You can write your own Selenium tests by hand, but the easiest way is to use the <a hr=""/></div><p><i>Truncated by Planet PHP, read more at <a href="http://feedproxy.google.com/~r/dragonbe-php/~3/KRIWCBDP7Fg/ua-testing-with-selenium-and-phpunit.html">the original</a> (another 36325 bytes)</i></p>]]></content></entry><entry><title type="text">Swede From Future Says He Can Code</title><link rel="alternate" type="text/html" href="http://www.phpro.org/articles/Swede-From-Future-Says-He-Can-Code" title="Swede From Future Says He Can Code"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o4X" title="Shortlink to http://www.phpro.org/articles/Swede-From-Future-Says-He-Can-Code"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/articles/Swede-From-Future-Says-He-Can-Code</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[A revaluation today as a Swedish national, who has traveled back in time, says he can code!]]></content></entry><entry><title type="text">PGSQL Cheat Sheet</title><link rel="alternate" type="text/html" href="http://www.phpro.org/articles/PGSQL-Cheat-Sheet" title="PGSQL Cheat Sheet"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o4Y" title="Shortlink to http://www.phpro.org/articles/PGSQL-Cheat-Sheet"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/articles/PGSQL-Cheat-Sheet</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[This table provides a simple ready reference to some common commands used in PostgreSQL. Ideal for those more accustomed to MySQL or other databases.]]></content></entry><entry><title type="text">Simple Mysql PHP Menu</title><link rel="alternate" type="text/html" href="http://www.phpro.org/tutorials/Simple-Mysql-PHP-Menu" title="Simple Mysql PHP Menu"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o4Z" title="Shortlink to http://www.phpro.org/tutorials/Simple-Mysql-PHP-Menu"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/tutorials/Simple-Mysql-PHP-Menu</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[There are possibly as many menu systems available for PHP and MySQL as there are PHP programmers. Here is yet another way of generating menus from a database.]]></content></entry><entry><title type="text">Simple Mysql PHP Menu</title><link rel="alternate" type="text/html" href="http://www.phpro.org/tutorial/Simple-Mysql-PHP-Menu" title="Simple Mysql PHP Menu"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o40" title="Shortlink to http://www.phpro.org/tutorial/Simple-Mysql-PHP-Menu"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/tutorial/Simple-Mysql-PHP-Menu</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[There are possibly as many menu systems available for PHP and MySQL as there are PHP programmers. Here is yet another way of generating menus from a database.]]></content></entry><entry><title type="text">Test For Prime Numbers With PHP Regular Expression</title><link rel="alternate" type="text/html" href="http://www.phpro.org/example/Test-For-Prime-Numbers-With-PHP-Regular-Expression" title="Test For Prime Numbers With PHP Regular Expression"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o41" title="Shortlink to http://www.phpro.org/example/Test-For-Prime-Numbers-With-PHP-Regular-Expression"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/example/Test-For-Prime-Numbers-With-PHP-Regular-Expression</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[This function provides a novel method of testing if a number is prime, by using a PHP regular expression.]]></content></entry><entry><title type="text">Web2bb 0.0.9 Released</title><link rel="alternate" type="text/html" href="http://www.phpro.org/articles/Web2bb-0.0.9-Released" title="Web2bb 0.0.9 Released"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o42" title="Shortlink to http://www.phpro.org/articles/Web2bb-0.0.9-Released"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/articles/Web2bb-0.0.9-Released</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[This is the latest update to the WEB2BB Framework and includes a simple fix for an error that failed to catch an exception.

The WEB2BB framework is a fully functioning MVC style framework that utilizes the best features of PHP 5.3 and above. By making use of the latest additions to PHP, the WEB2BB framework is able to provide sleek code and optimal performance. It does not try to be all things to all people and so the codebase is kept to a minimum.]]></content></entry><entry><title type="text">nWire Eclipse Zend Plugin Review</title><link rel="alternate" type="text/html" href="http://www.phpro.org/articles/nWire-Eclipse-Zend-Plugin-Review" title="nWire Eclipse Zend Plugin Review"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o43" title="Shortlink to http://www.phpro.org/articles/nWire-Eclipse-Zend-Plugin-Review"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/articles/nWire-Eclipse-Zend-Plugin-Review</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[PHPRO.ORG receives many emails requesting reviews for magazines, web sites, application development tools, applications, books etc. Now and again, one of these catches the eye and deserves further inspection. Recently, a request for a product called nWire arrived which allegedly "accelerates PHP development by helping developers navigate through their code and better understand the architecture of their application". Here is a closer look at nWire.]]></content></entry><entry><title type="text">Trim All Members Of An Array With PHP</title><link rel="alternate" type="text/html" href="http://www.phpro.org/example/Trim-All-Members-Of-An-Array-With-PHP" title="Trim All Members Of An Array With PHP"/><link rel="shortlink" type="text/html" href="http://planet-php.org/~o44" title="Shortlink to http://www.phpro.org/example/Trim-All-Members-Of-An-Array-With-PHP"/><author><name>Kevin Waterson</name></author><id>http://www.phpro.org/example/Trim-All-Members-Of-An-Array-With-PHP</id><updated>2013-05-23T09:22:00Z</updated><published>2013-05-23T09:22:00Z</published><content type="html"><![CDATA[This little helper function provides a simple method to trim the white space from the beginning and end of all the elements in an array. It uses the call to array trim, which, in turn, calls the trim() function. The iteration is handled internally and so provides maximum performance then dealing with the the problem in user code.]]></content></entry></feed>
