<?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>Sat, 25 May 2013 22:12:11 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Testing Phing buildfiles with PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/12488</guid>
      <link>http://www.phpdeveloper.org/news/12488</link>
      <description><![CDATA[<p>
<i>Raphael Stolt</i> has <a href="http://raphaelstolt.blogspot.com/2009/05/testing-phing-buildfiles-with-phpunit.html">a new post</a> looking at a technique to ensure that your <a href="http://phing.info/trac/">Phing</a> buildfile is how it should be via unit testing it.
</p>
<blockquote>
While <a href="http://raphaelstolt.blogspot.com/2008/07/six-valuable-phing-build-file.html">transforming</a> some of the <a href="http://ant.apache.org/">Ant</a> buildfile refactorings described in <a href="http://www.build-doctor.com/">Julian Simpson</a>'s seminal essay into a <a href="http://phing.info/trac/">Phing</a> context, it felt plainly wrong that I didn't have any tests for the buildfile to back me up on obtaining the pristine behaviour throughout the process. While Ant users can rely on an Apache project called <a href="http://ant.apache.org/antlibs/antunit/">AntUnit</a> there are currently no tailor-made tools available for testing or verifying Phing buildfiles. 
</blockquote>
<p>
He includes an sample build file that will be tested and some PHPUnit code to execute the build and run several tests on the results like githubCloneAdhocTaskShouldBeDefined, targetLogBuildShouldBeAPrivateOne, propertyGithubReposDirShouldBeSet and more.
</p>]]></description>
      <pubDate>Mon, 11 May 2009 09:33:20 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zend Developer Zone: Wrapping C++ Classes in a PHP Extension]]></title>
      <guid>http://www.phpdeveloper.org/news/12393</guid>
      <link>http://www.phpdeveloper.org/news/12393</link>
      <description><![CDATA[<p>
On the Zend Developer Zone a <a href="http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension">new tutorial</a> has been posted looking at taking your pre-existing C++ functionality and wrapping it in a PHP extension to be used directly in your code.
</p>
<blockquote>
In this tutorial I am going to walk you through creating a PHP extension called "vehicles" which will expose a single class called "Car" (obviously in the real-world, your extensions will expose many classes, but I'm trying to keep things simple). The extension will be built for PHP 5. I am only going to give instructions for building the extension in a UNIX-like environment, although most of what I cover should apply to Windows extension development as well.
</blockquote>
<p>
The tutorial walks you through everything - how the file layout should look, making a build system, the contents of his files (the sample extension lets you do things to the Car like shift gears and brake) and how to combine the C++ code with the build process to create a shared module you can include right in your php.ini.
</p>]]></description>
      <pubDate>Thu, 23 Apr 2009 10:21:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Getting a visualization of a Phing buildfile]]></title>
      <guid>http://www.phpdeveloper.org/news/11301</guid>
      <link>http://www.phpdeveloper.org/news/11301</link>
      <description><![CDATA[<p>
<i>Raphael Stolt</i> recently spent some time working up a tool to visualize Phing buildfiles and he's blogged about it in <A href="http://raphaelstolt.blogspot.com/2008/10/getting-visualization-of-phing.html">this new post</a>.
</p>
<blockquote>
Out of the box the Phing -l option can be used to get a first overview of all available targets in a given buildfile but it doesn't untangle the target dependencies and sometimes a picture is still worth a thousand words. Luckily the Ant community already provides several tools to accomplish the visualization of Ant buildfiles, reaching from solutions that apply a Xslt stylesheet upon a given buildfile.
</blockquote>
<p>
Using the <a href="http://ant2dot.sourceforge.net/">ant2dot</a> tool along with the <a href="http://www.graphviz.org/">Graphiz</a> graphic library, he transforms the XML from the build file into a simple graphic showing the flow of the build. An <a href="http://www.flickr.com/photos/raphaelstolt/2974636277/">example image</a> is included.
</p>]]></description>
      <pubDate>Tue, 28 Oct 2008 12:03:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Raphael Stolt's Blog: Setting up Zend Framework applications with Phing]]></title>
      <guid>http://www.phpdeveloper.org/news/8531</guid>
      <link>http://www.phpdeveloper.org/news/8531</link>
      <description><![CDATA[<p>
In <a href="http://raphaelstolt.blogspot.com/2007/08/setting-up-zend-framework-applications.html">this new post</a> to his blog today, <i>Raphael Stolt</i> shows how to combine the Zend Framework and Phing to create a simple, quick setup utility for future ZF projects.
</p>
<blockquote>
After spending too much time on directory and view script shifting to align an 'older' Zend Framework application to the very useful <a href="http://framework.zend.com/manual/en/zend.controller.actionhelpers.html#zend.controller.actionhelpers.viewrenderer">ViewRenderer</a> Action Helper of the follow-up releases I crafted a single Phing <a href="http://raphael.stolt.googlepages.com/build.xml">buildfile</a> to stick to the recommended conventions and to have a nearly 'one-button' setup solution for any upcoming projects. 
</blockquote>
<p>
He'd found some other packages that did something similar, but wanted to do it with Phing. He includes the requirements (the software) features that the buildfile makes easy to include and some future improvements that could be made to the install to make things even easier. The <a href="http://raphael.stolt.googlepages.com/build.xml">buildfile</a> is included and any path or configuration changes that might need to be made. 
</p>
<p>
<a href="http://phing.info/trac/">Phing</a> is a "make" replacement that uses XML build files to define tasks in classes.
</p>]]></description>
      <pubDate>Mon, 27 Aug 2007 08:03:00 -0500</pubDate>
    </item>
  </channel>
</rss>
