<?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>Sun, 19 May 2013 20:28:39 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[QaFoo.com: Code Coverage with Behat]]></title>
      <guid>http://www.phpdeveloper.org/news/19406</guid>
      <link>http://www.phpdeveloper.org/news/19406</link>
      <description><![CDATA[<p>
On the QaFoo blog today there's a post for those using the <a href="http://behat.org/">Behat</a> testing tool showing a way to <a href="http://qafoo.com/blog/040_code_coverage_with_behat.html">collect code coverage metrics</a> based on your tests using the <a href="https://github.com/sebastianbergmann/php-code-coverage">PHP_CodeCoverage</a> library and <a href="https://github.com/sebastianbergmann/phpcov">phpcov</a>.
</p>
<blockquote>
There is generally no point in having code coverage for Behat test cases because of their nature: The purpose of an acceptance test is to assert a certain behavior of an application, not to technically test a piece of code. Therefore, there is no point in checking for uncovered code pieces in order to write a Behat test for it. That said, there is still a scenario where you want to peek at code coverage of Behat tests: When creating them as wide-coverage tests before starting to refactor legacy code. Behat in combination with Mink provides you with a great tool for such tests.
</blockquote>
<p>
They help you get the tools installed and show the code you'll need to add to the application itself to collect the coverage data as the tests execute. It keys off of a file existing/not existing to know if it should execute the coverage or not. The <a href="https://github.com/sebastianbergmann/phpcov">phpcov</a> tool can then be used to generate the HTML output of the coverage information for easy viewing.
</p>
Link: http://qafoo.com/blog/040_code_coverage_with_behat.html]]></description>
      <pubDate>Wed, 03 Apr 2013 12:37:30 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DevHell Podcast: Episode 3: Beatings Will Continue Until Test Coverage Improves]]></title>
      <guid>http://www.phpdeveloper.org/news/17373</guid>
      <link>http://www.phpdeveloper.org/news/17373</link>
      <description><![CDATA[<p>
The latest episode of the DevHell podcast has been posted - <a href="http://devhell.info/post/2012-01-07/beatings-will-continue-until-test-coverage-improves/">Episode 3</a>, "Beatings Will Continue Until Test Coverage Improves".
</p>
<blockquote>
Fresh off our holiday break, we're back with our longest show yet. We talk about Chris' new book <a href="http://leanpub.com/grumpy-testing">The Grumpy Programmer's Guide To Building Testable PHP Applications</a>, including his experiences self-publishing with Leanpub. Chris also explains how he fears no precipitation on his excursions to the Codemash conference in Ohio. Then Ed talks about the thought process that lead to his latest shit-stirring blog post "<a href="http://funkatron.com/posts/the-microphp-manifesto.html">The MicroPHP Manifesto</a>." Ed may or may not begin crying openly. Finally, we discuss when it might be necessary to trash your existing application and rewrite it.
</blockquote>
<p>
You can listen to this latest episode either via the <a href="http://devhell.info/post/2012-01-07/beatings-will-continue-until-test-coverage-improves/">in-page player</a> or by <a href="http://devhell.s3.amazonaws.com/ep3-64mono.mp3">downloading the mp3 directly</a>.
</p>]]></description>
      <pubDate>Tue, 10 Jan 2012 13:58:03 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Volker Dusch's Blog: Textual code coverage information for PHPUnit]]></title>
      <guid>http://www.phpdeveloper.org/news/17173</guid>
      <link>http://www.phpdeveloper.org/news/17173</link>
      <description><![CDATA[<p>
In <a href="http://edorian.posterous.com/textual-code-coverage-information-for-phpunit">a new post</a> to his blog <i>Volker Dusch</i> points out a new feature in a recent release of <a href="http://phpunit.de">PHPUnit</a>, the popular unit testing framework for PHP - textual code coverage details.
</p>
<blockquote>
Three weeks ago PHPUnit 3.6 was released and it has a little new feature you might have missed until now. PHPUnit can now show you code coverage information on the command line.
</blockquote>
<p>
Options for the report output include: colorizing, writing the output to a file, including a project summary, namespace separation and package (using the @package phpdoc tag) information. He includes a use case he's found for it - small projects where you can cover the whole codebase quickly (with a "watch" command example filtering based on a certain class).
</p>]]></description>
      <pubDate>Fri, 25 Nov 2011 16:11:41 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[DevShed: Using Conditional Statements with the Xdebug Extension ]]></title>
      <guid>http://www.phpdeveloper.org/news/12066</guid>
      <link>http://www.phpdeveloper.org/news/12066</link>
      <description><![CDATA[<p>
DevShed continues their series looking at the <a href="http://xdebug.de">XDebug</a> extension for PHP with <a href="http://www.devshed.com/c/a/PHP/Using-Conditional-Statements-with-the-Xdebug-Extension/">this fifth part</a> looking a bit more at the code coverage functions it comes with.
</p>
<blockquote>
In this fifth part of a series on using the Xdebug extension to help debug your PHP programs, we'll take a closer look at the xdebug_start_code_coverage() and xdebug_get_code_coverage() functions. Specifically, we'll see how we can extend their usage when working with conditional statements. As always, we'll complement theory with a number of hands-on examples.
</blockquote>
<p>
They start with <a href="http://www.devshed.com/c/a/PHP/Using-Conditional-Statements-with-the-Xdebug-Extension/1/">a review</a> of the previous tutorial (that started the look at code coverage) and continue on to show how to <a href="http://www.devshed.com/c/a/PHP/Using-Conditional-Statements-with-the-Xdebug-Extension/2/">extend a code coverage class</a> to <a href="http://www.devshed.com/c/a/PHP/Using-Conditional-Statements-with-the-Xdebug-Extension/3/">debug some conditionals</a> and return the results in a simple echoed output.
</p>]]></description>
      <pubDate>Wed, 04 Mar 2009 12:08:43 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHP.net: TestFest 2008 wrap-up]]></title>
      <guid>http://www.phpdeveloper.org/news/10725</guid>
      <link>http://www.phpdeveloper.org/news/10725</link>
      <description><![CDATA[<p>
PHP.net has posted a <a href="http://www.php.net/index.php#id2008-07-30-1">wrapup</a> of this year's TestFest and the great progress that was made to bring the language development up to the next level.
</p>
<blockquote>
Overall 158 tests have been submitted as part of <a href="http://qa.php.net/testfest.php">TestFest 2008</a> since the launch of the <a href="http://testfest.php.net/">TestFest submission site</a> by 30 different people from people all over the world. Actually this is not counting the various submissions by existing core developers, who also took this opportunity to add some more tests. This has actually increased total <a href="http://gcov.php.net/">test coverage</a> by about 10%.
</blockquote>
<p>
It also mentions <i>Felix De Vliegher</i> who, because of his large volume of tests (and quality of them), was granted commit rights into the PHP repository to add his in himself. The list of elePHPant winners is included as well. You can also still submit tests through the <a href="http://testfest.php.net/">TestFest submission site</a> (just not for any of the rewards).
</p>]]></description>
      <pubDate>Thu, 31 Jul 2008 09:32:45 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Community News: php|tek 2008 Coverage]]></title>
      <guid>http://www.phpdeveloper.org/news/10236</guid>
      <link>http://www.phpdeveloper.org/news/10236</link>
      <description><![CDATA[<p>
Rather than having a lots of different blog posts scattered all over covering this year's <a href="http://tek.phparch.com">php|tek conference</a> in Chicago, I figured that pulling them all together here would work best. So, without further ado - the coverage from php|tek 2008:
</p> 
<ul>
<li>the <a href="http://tek.phparch.com/c/p/live,main">php|tek live</a> site
<li><a href="http://tek.phparch.com/c/p/live,slides">slides</a> (as they get them
<li><a href="http://tek.phparch.com/c/p/live,slides">Photos on Flickr</a> tagged with "tek08"
</ul>
<ul>
<li><i>Ivo Jansch</i>: <a href="http://feeds.feedburner.com/~r/ijansch/~3/293963346/">Day -1</a>, <a href="http://www.jansch.nl/2008/05/21/phptek-2008-day-0/">Day 0</a>, <a href="http://www.jansch.nl/2008/05/22/phptek-2008-day-1/">Day 1</a>, <a href="http://feeds.feedburner.com/~r/ijansch/~3/296691319/">Day 2</a>, <a href="http://feeds.feedburner.com/~r/ijansch/~3/298521063/">Day 3 (and wrapup)</a> 
<li><i>Eli White</i>: <a href="http://eliw.wordpress.com/2008/05/20/heading-to-phptek/">Heading to php|tek</a>
<li><i>Greg Beaver</i>: <a href="http://greg.chiaraquartet.net/archives/190-phar-is-near-at-phptek.html">phar is near at php|tek</a>
<li><i>Ivo Jansch</i>'s coverage of the <a href="http://www.jansch.nl/2008/05/22/microsoft-and-yahoo-zend-php-updates/">Zend/Microsoft issue</a> during <i>Joe Stagner</i>'s keynote
<li><i>Brian DeShong</i>'s slides - <a href="http://brian.deshong.net/talks/2008/phptek/grown_up_companys_guide_to_development.pdf">The Grown-Up Company's Guide to Development</a> and <a href="http://brian.deshong.net/talks/2008/phptek/robust_batch_processing_with_php.pdf">Robust Batch Processing with PHP</a>
<li><i>Maggie Nelson</i> slides - <a href="http://www.objectivelyoriented.com/conferences/phptek2008/keeping_your_db_and_php_in_sync.pdf">Keeping You DB and PHP in Sync</a>, <a href="http://www.objectivelyoriented.com/conferences/phptek2008/angering_database_gods.pdf">Angering the Database Gods</a>
<li><i>Sebastian Bergmann</i>'s slides - <a href="http://sebastian-bergmann.de/archives/783-Type-Safe-Objects-in-PHP.html">Type-Safe Objects in PHP</a>, <a href="http://sebastian-bergmann.de/archives/782-Understanding-the-PHP-Object-Model.html">Understanding the PHP Object Model</a>, <a href="http://sebastian-bergmann.de/archives/781-Quality-Assurance-in-PHP-Projects.html">Quality Assurance in PHP Projects</a>
<li><a href="http://feeds.feedburner.com/~r/ramsey/~3/296961995/">a wrapup</a> of the conference from <i>Ben Ramsey</i>
<li><a href="http://ishouldbecoding.com/2008/05/24/php-tek-and-the-conference-experience">Matthew Turland's look</a> back at the conferece
<li><i>Gennady Feldman</i>'s <a href="http://www.gena01.com/forum/gena01_blog/phptek_2008_impressions_and_closing_notes-t219.0.html;msg1390#msg1390">wrapup</a>
<li><i>Maggie Nelson</i>'s slides for <a href="http://www.objectivelyoriented.com/conferences/phptek2008/angering_database_gods.pdf">Angering the Database Gods</a>
<li>a <A href="http://mtabini.blogspot.com/2008/05/revenge-never-tasted-so-sweet.html">heads-up</a> from <i>Marco Tabini</i> to look in the near future for some incriminating video of some php|architect staff in KISS outfits
<li><a href="http://www.procata.com/blog/archives/2008/05/26/php-tek-wrapup/">Jeff Moore's wrapup</a> of this year's conference and links to his slides - <a href="http://www.procata.com/talks/phptek-may2008-exceptional.pdf">Exceptional PHP</a> and <a href="http://www.procata.com/talks/phptek-may2008-maintainable.pdf">Coding for Success: Writing Software You'll Be Able To Understand Next Month</a>
<li><a href="http://www.principlespatternsandpractices.com/2008/05/28/phptek-2008-recap/">Another recap</a> by <i>Andrew Culver</i>
<li>slides from <i>Greg Beaver</i> - <a href="http://greg.chiaraquartet.net/archives/192-phptek-PEARpharPyrus-talk-slides.html">PEAR, Phar and Smart PHP</a>
<li>slides from <i>Ed Finkler</i>'s talks - <a href="http://funkatron.com/content/Building%20Desktop%20RIAs-phptek2008.pdf">Building Desktop RIAs with PHP, HTML & Javascript in AIR</a>, <a href="http://tek.phparch.com/mats/slides/ed_finkler-phpsecinfo.pdf">Securing the PHP Environment with PHPSecinfo</a>
<li><a href="http://blogs.oracle.com/opal/2008/06/05#a318">an overview</a> from <i>Christopher Jones</i>
</ul>
<p>
Check out more live from the conference on the <a href="http://tek.phparch.com/c/p/live,main">php|tek Live</a> page on the php|architect website.
</p>]]></description>
      <pubDate>Wed, 21 May 2008 13:45:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Antony Dovgal's Blog: PHP test coverage exceeded 55%]]></title>
      <guid>http://www.phpdeveloper.org/news/10229</guid>
      <link>http://www.phpdeveloper.org/news/10229</link>
      <description><![CDATA[<p>
As <i>Antony Dovgal</i> <a href="http://daylessday.org/archives/25-PHP-test-coverage-exceeded-55%23.html">points out</a> in a new blog post today, the latest reports on PHP's <a href="http://gcov.php.net/PHP_5_3/lcov_html/">code coverage</a> have jumped up over the 50% mark (to 56.3% at the time of this post).
</p>
<blockquote>
It took us about 2 years to get the last 5% and I believe most of the kudos should go to IBM people, who continue to contribute lots of new tests. I hope that <a href="http://qa.php.net/testfest.php">the Testfest</a> will help us to speed up this process.
</blockquote>
<p>
There are still a lot of items <a href="http://gcov.php.net/PHP_5_3/lcov_html/">in the red</a> that could use some tests, so if you're looking to help out write up some tests or check your area for a <a href="http://qa.php.net/testfest.php">TestFest</a> event to get some help.
</p>]]></description>
      <pubDate>Wed, 21 May 2008 08:47:44 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stoyan Stefanov's Blog: www vs no-www and cookies]]></title>
      <guid>http://www.phpdeveloper.org/news/10182</guid>
      <link>http://www.phpdeveloper.org/news/10182</link>
      <description><![CDATA[<p>
<i>Stoyan Stefanov</i> has come up against one of the frustrations of web development involving cookies - problems caused by the switch from a "www." in the host to none. He's <a href="http://www.phpied.com/www-vs-no-www-and-cookies/">come up with a test</a> to show you how cookies are set and where you can access them from.
</p>
<blockquote>
One of the implications of following the rule is related to the whole <a href="http://www.sitepoint.com/blogs/2008/02/19/www-or-no-www/">www vs no-www</a> question. Basically you should always use www if you're planning to use any other sub-domains and you want them cookie-free. This is because you have no way to set a cookie only to the top-level domain.
</blockquote>
<p>
His code sets cookies for the ".phpied.com", "phpied.com" and "www.phpied.com" domains. Since the domains without the "www" offer a bit broader range of possible matches, he recommends that if you're ever going to use any kind of subdomain, you'll want to use the more broad cookie to cover it.
</p>]]></description>
      <pubDate>Wed, 14 May 2008 11:18:39 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Debuggable Blog: Code Coverage Analysis soon in CakePHP - Test How Well You Test]]></title>
      <guid>http://www.phpdeveloper.org/news/10088</guid>
      <link>http://www.phpdeveloper.org/news/10088</link>
      <description><![CDATA[<p>
In <a href="http://www.debuggable.com/posts/code-coverage-analysis-soon-in-cakephp---test-how-well-you-test:4814f6a0-fe60-4f50-be0b-07194834cda3">a new post</a> to the Debuggable blog, <i>Tim Koschutzki</i> talks some about the work he's been doing on the code coverage analysis for the upcoming CakePHP release:
</p>
<blockquote>
There are several different kinds of criteria to code coverage. The two most important ones are line coverage (or statement coverage as wikipedia puts it) and path coverage. [...] So how is it going to work? Pretty simple actually. Whenever you run a CakePHP test case Cake assembles information in the background about which lines of your subject-under-test are called.
</blockquote>
<p>
He includes <a href="http://www.debuggable.com/posts/code-coverage-analysis-soon-in-cakephp---test-how-well-you-test:4814f6a0-fe60-4f50-be0b-07194834cda3">a few screenshots</a> of the code coverage being run and the end result of the runner with the percent covered.
</p>]]></description>
      <pubDate>Thu, 01 May 2008 11:19:54 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Stuart Herbert's Blog: What Does The Business Case For PHP Need To Cover?]]></title>
      <guid>http://www.phpdeveloper.org/news/7249</guid>
      <link>http://www.phpdeveloper.org/news/7249</link>
      <description><![CDATA[<p>
In <a href="http://blog.stuartherbert.com/php/2007/02/08/what-does-the-business-case-for-php-need-to-cover/">a new post</a> to his blog today, <i>Stuart Herbert</i> continues <a href="http://www.phpdeveloper.org/news/7118">the theme</a> he started in a previous post about a business case for PHP. In this new entry, he shares some things he's done to further the effort.
</p>
<blockquote>
To turn this from an idea into reality, I've setup a <a href="http://groups.google.com/group/whyphp/">Google group</a> where anyone who is interested can join in, and help build this resource. Please come along with your ideas and concerns, and let's see what we can achieve together.
</blockquote>
<p>
He also <a href="http://blog.stuartherbert.com/php/2007/02/08/what-does-the-business-case-for-php-need-to-cover/">suggests</a> some "first steps" to get the ball rolling, namely a list of topics the business case needs to cover.
</p>]]></description>
      <pubDate>Fri, 09 Feb 2007 07:49:00 -0600</pubDate>
    </item>
  </channel>
</rss>
