<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Fri, 09 Jan 2009 06:51:10 -0600</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Matthew Weier O'Phinney's Blog: Testing Zend Framework MVC Applications]]></title>
      <guid>http://www.phpdeveloper.org/news/10521</guid>
      <link>http://www.phpdeveloper.org/news/10521</link>
      <description><![CDATA[<p>
<i>Matthew Weier O'Phinney</i> has <a href="http://weierophinney.net/matthew/archives/182-Testing-Zend-Framework-MVC-Applications.html">posted about</a> a project he undertook to make it simple to test "userland projects" built with the Zend Framework as easy to test as the framework's own Front Controller and Dispatcher.
</p>
<blockquote>
One of my ongoing projects the past few months has been to create an infrastructure for functional testing of ZF projects using <a href="http://phpunit.de/">PHPUnit</a>. This past weekend, I made the final commits that make this functionality feature complete. 
</blockquote>
<p>
This new functionality allows you to create stub test case classes, use a Zend_Dom_Query object with CSS selectors/XPath for queries and makes available a special PHPUnit test case that handles the interface between some of the custom functionality (boostrapping, dispatching requests, etc) and PHPUnit.
</p>
<p>
He includes a sample test case that has assertions for calls to a controller with an action, that a page contains a login form and that a page creates a session and redirects to a profile page.
</p>
<p>
You can get this functionality <a href="http://framework.zend.com/svn/framework/standard/incubator/">from the incubator</a> on the subversion repository for the project.
</p>]]></description>
      <pubDate>Tue, 01 Jul 2008 12:05:32 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: Support for BDD and Stories in PHPUnit 3.3]]></title>
      <guid>http://www.phpdeveloper.org/news/9441</guid>
      <link>http://www.phpdeveloper.org/news/9441</link>
      <description><![CDATA[<p>
On his blog today <i>Sebastian Bergmann</i> has <a href="http://sebastian-bergmann.de/archives/738-Support-for-BDD-and-Stories-in-PHPUnit-3.3.html">posted about</a> new functionality that's been added to the PHPUnit unit testing package for PHP - support for BDD and Stories.
</p>
<blockquote>
PHPUnit_Extensions_Story_TestCase is a new extension for PHPUnit that has been contributed by <a href="http://www.xait.no/">Xait</a>, a company that I visited last fall. It adds a story framework with a <a href="http://martinfowler.com/bliki/DomainSpecificLanguage.html">Domain-Specific Language (DSL)</a> for <a href="http://dannorth.net/whats-in-a-story">Behaviour-Driven Development (BDD)</a>.
</blockquote>
<p>
He <a href="http://sebastian-bergmann.de/archives/738-Support-for-BDD-and-Stories-in-PHPUnit-3.3.html">includes an example</a> of the new extension in action - creating a Story, adding Steps to it and the output that would result from the execution (reading?) of the example.
</p>]]></description>
      <pubDate>Thu, 17 Jan 2008 08:48:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Gareth Heyes' Blog: Exploiting PHP SELF]]></title>
      <guid>http://www.phpdeveloper.org/news/9413</guid>
      <link>http://www.phpdeveloper.org/news/9413</link>
      <description><![CDATA[<p>
<i>Gareth Heyes</i> has a <a href="http://www.thespanner.co.uk/2008/01/14/exploiting-php-self/">new post</a> today talking about one of the vulnerable values in the $_SERVER superglobal - PHP_SELF.
</p>
<blockquote>
I thought it might be a good idea to gather a few test cases demonstrating the problem. Why PHP allows these URL's is beyond me and it wouldn't take much work to filter out these malicious URL's in the PHP code.
</blockquote>
<p>
He <a href="http://www.thespanner.co.uk/2008/01/14/exploiting-php-self/">provides</a> four test cases to show how simple it is to abuse - one using a HTTP header, another pushing XSS through, the third mentions search pages and the fourth a direct code injection.
</p>
<p>
You can <a href="http://www.thespanner.co.uk/wp-content/uploads/2008/01/php_selfphp.zip">download the code here</a>.
</p>]]></description>
      <pubDate>Mon, 14 Jan 2008 07:54:00 -0600</pubDate>
    </item>
  </channel>
</rss>
