<?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>Wed, 09 Jul 2008 07:17:28 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[PhPL33t Blog: How to Automated Plesk Email Creation]]></title>
      <guid>http://www.phpdeveloper.org/news/10033</guid>
      <link>http://www.phpdeveloper.org/news/10033</link>
      <description><![CDATA[<p>
On the PhPL33t blog, there's <a href="http://php.phpl33t.com/how-to-automated-plesk-email-creation/">a guide</a> for automating the creation of email addresses with the Plesk administration application:
</p>
<blockquote>
In 2003 I wrote "Plesk Auto Email", the first fully funtional Plesk email automation suite. Now, I am going to show you how to do it. You will need a dedicated server with Linux, Plesk 7.5 and higher, php5, mysql5, and root access. This will show you how to code the auto creation, I am not going into deletions and edits at this time because I don't have all night to blog.
</blockquote>
<p>
Included are the database table to store the commands in, the PHP script to create the commands (the integration into the other piece of software) and the PHP cron script that looks in the command table and executes each as it goes through.
</p>]]></description>
      <pubDate>Thu, 24 Apr 2008 10:25:31 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weir O'Phinney's Blog: Automating PHPUnit2 with SPL]]></title>
      <guid>http://www.phpdeveloper.org/news/5133</guid>
      <link>http://www.phpdeveloper.org/news/5133</link>
      <description><![CDATA[<i>Matthew Weir O'Phinney</i> has been working with PHPUnit and the SPL (Standard PHP Library) in PHP for a bit now, and he's discovered a way to integrate the two to automate the testing procedure.
<p>
<quote>
<i>
I've actually come to enjoy the PHPUnit2 style of tests. In the end, I find that my tests are much less verbose than the way I was performing them with phpt, and I tend to test for failure rather than success; failure should be the exception to the rule. The myriad of 'assert' methods make this relatively easy (though some operate in unexpected ways -- try testing assertSame() on two objects that contain PDO handles, for instance).
<p>
One thing that was missing for me was an easy way to run all tests in a directory, ala 'pear run-tests'. However, I was initially disappointed. The demonstrated way to do this is to manually require each test file and add the class contained therein to the test suite. Basically, I was going to need to touch the file every time I added a test class to the suite. Bleh!
</i>
</quote>
<p>
So, he <a href="http://weierophinney.net/matthew/archives/106-Automating-PHPUnit2-with-SPL.html">set about</a> working up his own solution - a regular expresion-based, recursive class that would locate the testing files and perform the specified actions. He shares the solution with a good bit of example code included with the post.]]></description>
      <pubDate>Mon, 10 Apr 2006 07:10:04 -0500</pubDate>
    </item>
  </channel>
</rss>
