<?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>Thu, 23 May 2013 08:39:40 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Anna Filina: Define: Functional, Unit and Integration Tests]]></title>
      <guid>http://www.phpdeveloper.org/news/19429</guid>
      <link>http://www.phpdeveloper.org/news/19429</link>
      <description><![CDATA[<p>
<i>Anna Filina</i> has a new post to her site that helps to clarify the definitions between <a href="http://annafilina.com/blog/functional-unit-and-integration-tests/">functional, unit and integrations tests</a> of your application's functionality.
</p>
<blockquote>
I have recently read a blog post claiming that functional tests are not "true" tests. The author also claims that unit testing shows you where the problem is occurring, while functional testing simply identifies that a problem exists. This argument is deceptive and the conclusion dangerous. Different kinds of tests are not mutually exclusive. One is not superior to the other. They have different goals and can happily coexist. Let me explain the kinds of tests so that you could make enlightened decisions.
</blockquote>
<p>
She covers each type of test in detail, noting the goal of that particular type and some examples of the kinds of things they might test. She starts with the highest level, functional testing, then jumps down to the lowest - unit testing. She finishes up the post defining "integration tests" as tests that ensure you're integrating correctly - that you're using the API provided by the tool in the right way and that it's working as expected.
</p>
Link: http://annafilina.com/blog/functional-unit-and-integration-tests]]></description>
      <pubDate>Mon, 08 Apr 2013 14:45:46 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Chris Hartjes: PHPSpec and the New Wave of Testing]]></title>
      <guid>http://www.phpdeveloper.org/news/18631</guid>
      <link>http://www.phpdeveloper.org/news/18631</link>
      <description><![CDATA[<i>Chris Hartjes</i>, a big proponent of testing in web applications (mostly in the PHP realm so far) has a new post to his site with some of his <a href="http://www.littlehart.net/atthekeyboard/2012/10/18/phpspec-and-the-new-wave-of-testing/">thoughts about PHPSpec</a>, the <a href="http://www.phpspec.net/">specification-driven testing tool</a> recently released by the same folks who made <a href="http://behat.org/">Behat</a>.
</p>
<blockquote>
I think that we are witnessing the first wave of new testing tools in the PHP community that allow developers to wrap their applications in automated tests. I am familiar with the BDD-style that is being promoted in PHPSpec, through my work with <a href="http://behat.org/">Behat</a> to create automated user acceptance tests. I think if you want a tl;dr version of PHPSpec I would tell you "write hybrid unit/integration tests using plain language".
</blockquote>
<p>
He notes that writing code to match a specification has similar concepts to using unit testing for TDD (with something like <a href="http://phpunit.de">PHPUnit</a>). He points out a few interesting things like the use of mock objects and the fact that you'll still need to write some code to make tests work - that's unavoidable right now.
</p>]]></description>
      <pubDate>Fri, 19 Oct 2012 08:42:18 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Codeception Blog: Test WebServices With Codeception]]></title>
      <guid>http://www.phpdeveloper.org/news/18118</guid>
      <link>http://www.phpdeveloper.org/news/18118</link>
      <description><![CDATA[<p>
On the Codeception blog (an up and coming PHP-based testing tool) there's a new post showing how to use the tool to <a href="http://codeception.com/06-19-2012/testing-webservices.html">test your web services</a> for either a SOAP or REST-based service.
</p>
<blockquote>
Codeception testing framework got significant improvements during last week. The first and the major one is that you don't even need PEAR and Composer to execute tests. Only one file codecept.phar required. This might save your time and mind of your testers.
</blockquote>
<p>
They've recently added modules for <a href="http://codeception.com/docs/modules/SOAP">SOAP</a> and <a href="http://codeception.com/docs/modules/REST">REST</a> support, making it easier to define your tests in a more fluid fashion. Included in the post are two examples, one REST and one SOAP. You can find more information about these new testing features over in the <a href="http://codeception.com/doc">tool's documentation</a>.
</p>]]></description>
      <pubDate>Wed, 20 Jun 2012 11:21:21 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Volker Dusch's Blog: The UNIT in unit testing]]></title>
      <guid>http://www.phpdeveloper.org/news/17677</guid>
      <link>http://www.phpdeveloper.org/news/17677</link>
      <description><![CDATA[<p>
<i>Volker Dusch</i> has <a href="http://edorian.posterous.com/the-unit-in-unit-testing">a new post</a> reminding us about what the "unit" part of "unit testing" means - small chunks of testable parts in an application.
</p>
<blockquote>
What does the word UNIT in unit testing stand for? Think of an answer and read on! So? Did you say "A method! Because we test methods!"? If so let me offer another perspective.
</blockquote>
<p>
He suggests that, rather than about just the methods in the class, it's more about testing the "observable behaviors" of the class. That is, anything that you could publicly use the class for and have something happen. He gives examples of this shift in focus - calling setValue and evaluating the result versus just calling the class property itself (then calling the method). He also includes a bit about testing behaviors - what happens when my script does [this] and how does that effect the overall class.
</p>
<blockquote>
When your tests fail but the class "still works" and you need to "fix the tests" the your tests are worth a lot less as they don't really give you that cozy safety net that they should provide you with.
</blockquote>]]></description>
      <pubDate>Thu, 15 Mar 2012 08:24:03 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPBuilder.com: Create a Unit Conversion Application w/the Zend_Measure Component]]></title>
      <guid>http://www.phpdeveloper.org/news/14025</guid>
      <link>http://www.phpdeveloper.org/news/14025</link>
      <description><![CDATA[<p>
On PHPBulder.com there's a new tutorial posted showing you how to create an application that can <a href="http://www.phpbuilder.com/columns/Jason_Gilmore021110.php3">do unit conversion</a> with the help of the Zend_Measure component of the <a href="http://framework.zend.com">Zend Framework</a>.
</p>
<blockquote>
Performing even relatively simple conversion calculations such as from pounds to kilograms from memory can be fairly difficult, let alone calculating more esoteric conversions such as from square meters to acres. To automate this conversion process, I used the Zend Framework to create a calculator capable of easily migrating data among the most commonly used formats.
</blockquote>
<p>
<a href="http://framework.zend.com/manual/en/zend.measure.html">Zend_Measure</a> lets you define the type you want to convert from and convert to based on some constants included with the component. A simple call to the "convertTo" method and you'll get your answer. Based on this he creates a simple calculator and shows you can can integrate roman numeral support in as well.
</p>]]></description>
      <pubDate>Mon, 15 Feb 2010 09:38:22 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Symfony Project: Book preview: read the Unit Tests chapter]]></title>
      <guid>http://www.phpdeveloper.org/news/7133</guid>
      <link>http://www.phpdeveloper.org/news/7133</link>
      <description><![CDATA[<p>
With unit testing becoming more and more prevalent in development of online applications (especially PHP), it's good to see some of the frameworks giving their users as much information as possible. The symfony project has <a href="http://www.symfony-project.com/weblog/2007/01/17/book-preview-read-the-unit-tests-chapter.html">done just that</a> as a part of a larger book on the framework.
</p>
<blockquote>
You're probably curious to see if what we wrote in this book is really helpful and practical. So we decided to offer you a sample of the book, in PDF format, and that's precisely Chapter 15 about units and functional tests.
</blockquote>
<p>
To check out this sample chapter from thei upcoming book (the chapter on unit testing), <a href="http://www.symfony-project.com/uploads/assets/The_Definitive_Guide_to_Symfony_Chapter_15.pdf">download it here</a> or just grab <a href="http://www.amazon.com/dp/1590597869>the book from Amazon</a> to add to your collection.
</p>]]></description>
      <pubDate>Fri, 19 Jan 2007 11:44:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Matthew Weir O'Phinney's Blog: Getting XDebug working with PHPUnit for code coverage reports]]></title>
      <guid>http://www.phpdeveloper.org/news/6990</guid>
      <link>http://www.phpdeveloper.org/news/6990</link>
      <description><![CDATA[<p>
After trying to get code coverage reports and unit testing with PHPUnit and XDebug to work, <i>Matthew Weir O'Phinney</i> succeeded and got the reports running. Fortunately, he's <A href="http://weierophinney.net/matthew/archives/130-Getting-XDebug-working-with-PHPUnit-for-code-coverage-reports.html">shared how he's done it</a> and an example of how to run the report.
</p>
<blockquote>
I've been playing with PHPUnit a lot of late, particularly with framework development. One thing that's always hard to determine is how well your code is exercised -- basically, how much of the code is tested in the unit tests?
</blockquote>
<p>
He <a href="http://weierophinney.net/matthew/archives/130-Getting-XDebug-working-with-PHPUnit-for-code-coverage-reports.html">gives an "executive summary"</a> of how to get XDebug working and playing nice with PHPUnit as well as something a bit more detailed, following his experience with getting things up and running.
</p>]]></description>
      <pubDate>Thu, 28 Dec 2006 15:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: AJAX-Based Test Runner for PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/6759</guid>
      <link>http://www.phpdeveloper.org/news/6759</link>
      <description><![CDATA[<p>
<i>Sebastian Bergmann</i> has posted an official <a href="http://sebastian-bergmann.de/archives/639-AJAX-Based-Test-Runner-for-PHPUnit.html">call for help</a> for a PHPUnit-related project that seems to be a more and more requested feature for the popular unit testing package - an Ajax-based test runner.
</p>
<blockquote>
It would be great if the frontend for the browser-based test runner would make use of <a href="http://en.wikipedia.org/wiki/AJAX">AJAX</a>. Since I am clueless when it comes to both web design in general and AJAX in particular, I would appreciate if someone else could help me with implementing this test runner.
</blockquote>
<p>
He's <a href="http://sebastian-bergmann.de/archives/639-AJAX-Based-Test-Runner-for-PHPUnit.html">looking for</a> the XHTML, CSS, and Javascript to put it all together as well as the Javascript that makes the magic happen. If you're interested in helping out, you can either contact him on <a href="http://www.phpunit.de/wiki/MailinglistsAndIrc">the mailing list</a> or in <a href="http://www.phpunit.de/wiki/MailinglistsAndIrc">#phpunit</a> on the Freenode IRC network.
</p>]]></description>
      <pubDate>Wed, 22 Nov 2006 18:02:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Sebastian Bergmann's Blog: PHPUnit 3.0 (Release)]]></title>
      <guid>http://www.phpdeveloper.org/news/6736</guid>
      <link>http://www.phpdeveloper.org/news/6736</link>
      <description><![CDATA[<p>
PHPUnit fans can finally rejoice that the latest version of their much loved PHP unit testing utility - <a href="http://www.phpunit.de/">PHPUnit3</a> - has finally been released as a stable download.
</p>
<blockquote>
<a href="http://sebastian-bergmann.de/">Sebastian Bergmann</a> and his contributors are proud to announce the immediate availability of <a href="http://www.phpunit.de/">PHPUnit 3</a>. This release is a major improvement to the popular open source testing solution for <a href="http://www.php.net/">PHP</a> applications. It includes new features and bug fixes. Further details about this release can be found in the <a href="http://www.phpunit.de/wiki/ChangeLog">ChangeLog</a>.
</blockquote>
<p>
In his <a href="http://sebastian-bergmann.de/archives/638-PHPUnit-3.0.html">newest blog post</a>, <i>Sebastian</i> lists some of the main new features this release offers - mock objects, selenium integration, and code-coverage support. There's even a brief installation howto and some on how to upgrade from the previous PHPUnit 2.3 to the latest.
</p>]]></description>
      <pubDate>Mon, 20 Nov 2006 09:24:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Felix Geisendorfer's Blog: Release early, Release often, CakeTester]]></title>
      <guid>http://www.phpdeveloper.org/news/6729</guid>
      <link>http://www.phpdeveloper.org/news/6729</link>
      <description><![CDATA[<p>
Trying to adhere to the philosophy of "release early and release often", <i>Felix Geisendorfer</i> has <a href="http://www.thinkingphp.org/2006/11/16/release-early-release-often-caketaster/">posted a new item</a> with the latest version of his testing application for the CakePHP framework - <a href="http://www.thinkingphp.org/downloads/cake_taster_0.1.zip">CakeTester</a>.
</p>
<blockquote>
The truth is, the poorest programmer of all is the ones that doesn't release. Because what good am I doing to the world when tinkering for for month on things people are in bad need for today, just to make myself look like all code I ever write is perfect the first time. None at all.
</blockquote>
<p>
He <a href="http://www.thinkingphp.org/downloads/cake_taster_0.1.zip">links to the download</a> and provides some basic install/usage instructions including a code sample (and a <a href="http://img505.imageshack.us/img505/6673/caketasterzq0.png">screenshot</a>) to get you started.
</p>]]></description>
      <pubDate>Fri, 17 Nov 2006 10:53:00 -0600</pubDate>
    </item>
  </channel>
</rss>
