Zend Developer Zone: Creating Code Coverage Statistics with xdebug
677740
The Zend Developer Zone has posted the fifth and final installment of the series Stefan Priebsch has written up about debugging your application via the XDebug software.   Today, we will have a look at another great feature of xdebug - creating code coverage statistics. Code coverage statistics show how many times each line of the code has been executed. Conversely, they also show which lines of code have not been executed, which is in fact much more interesting.   He talks a bit about what code coverage is and how it can help you fine tune your application. He walks you through the installation of the two packages that will help out with running the reports - phing and PHPUnit. Using these, he shows how to create a simple unit test and a build file for phing that combine and, via the XDebug calls to xdebug_start_code_coverage, xdebug_stop_code_coverage and xdebug_get_code_coverage, are used to generate the output graphs and stats in a nice, easy to read interface.
711397
Eclipse PHP Development tools project invites scripters to Eclipse, poses changes for Zend Technologies.
388816
Popular posts from PHPDeveloper.org for the past week:Dave Dash's Blog: nginx and symfonyZend Developer Zone: The ZendCon Sessions Episode 6: Project Management Methods to Maintain IT StandSitePoint PHP Blog: Tokenization using regular expression sub patternsIT Jobs Watch: Results for PHP Developers in LondonJob Posting: Digital River Seeks PHP Developer (Eden Prairie, MN)Dan Scott's Blog: Oooh...looks like I've got (even more) work cut out for meLeon Chevalier's Blog: Improve website load time by 500% with 3 lines of codePHPWomen.org: elePHPantsPhil Thompson's Blog: 7 PHP functions that saved my lifeStuart Herbert's Blog: Using suphp To Secure A Shared Server
295092
How often have you thrown up your hands in disgust at the poor quality of documentation for an open source project?  Wouldn&#8217;t it be nice if someone put together a documentation coverage tool that worked like test coverage too ls?  Well, you&#8217;re in luck&#8212;dcov is here (at least for Ruby code).
701641
Havard Eide is asking for your help in a new entry to his blog. He's looking for ways to speed up his development in Eclipse, specifically in the debugging.   There is one thing I do need over everything else: remote debugging. Having used Zend Studio for 3 years now it hasn't been the best editor ( I'd rather prefer PHPEclipse/PDT ) but the remote debugging facility is superb [...] Eclipse it has all the tools you need to develop with but the debugging is slow, way too slow!   He's looking for anyone out there that might be able to help him speed up the debugging on his Leopard-installed version of Eclipse ("So slow actually that I had to install Zend Studio 5.5 for whenever I have to debug a file...")
635920
Popular posts from PHPDeveloper.org for the past week:Padraic Brady's Blog: Complex Views w/Zend Framework - The Final Chapter: ZFE & Zend_Layout in Core!php|architect: Stuff your stockings: single issues 30% offDeveloperTutorials.com: How to Install PHP 5 on LinuxStoyan Stefanov's Blog: Fancy FormattingSymbianOne.com: Your S60 Web server gets a boostAndreas Gohr's Blog: MySimple.php - A lightweight PHPMyAdmin substituteNessa's Blog: Working with Permissions in PHPSymfony Blog: Symfony 1.0.10 is OutMatthew Turland's Blog: Web Scraping Article PublishedJan Lehnardt's Blog: REST Controller for PHP Applications
565362
Popular posts from PHPDeveloper.org for the past week:DeveloperTutorials.com: Writing an Email Autoresponder Script with PHPJaybill McCarthy's Blog: 10 PHP Myths DispelledIBM developerWorks: Mastering regular expressions in PHP, Part 1Job Posting: OmniTI Seeks PHP Talent (Brooklyn, NY)Zend Developer Zone: php|architect Announces 'Programming with the Zend Framework'DeveloperTutorials.com: Create a Facebook Application With PHPRob Allen's Blog: New Zend Framework Blog/WebsiteMichael Kimsal's Blog: Ecommerce system ideasJob Posting: Buildersite.co.uk Seeks PHP Programmer/Web Developer (Central London)Zend Developer Zone: Debugging PHP applications with xdebug
675785
The Zend Developer Zone has posted the theird part of their series (by Stefan Priebsch) about working with XDebug in PHP to profile your applications.   In this week's issue, we will have a look at profiling. Profiling is a feature that seems to be similar to trace logging at first sight. Profiling logs, however, are not meant for human readability, and are not meant to visualize the program's control flow, but provide the data for a statistical analysis of the program run.   He includes an example of the profiling log his XDebug setup is generating and gives the settings you'll need to make a log of your own like php.ini settings to start it up and name it/place it where you want it.    He also talks about the method to get something useful out of the profiling logs - using WinCacheGrind or KCacheGrind to get an overview of what's going on "on the inside" of your application.
765005
The Zend Developer Zone has republished the latest roadmap for the Zend Framework as posted by Andi Gutmans of Zend.    Although not always visible due to the infrequent release of new framework packages, there has been a lot of progress in the past few months. More than 100 community members(!) have joined the effort by singing the CLA, and are contributing via proposals, comments, patches, code contributions or documentation improvements.   Now the Summer is over and everyone is back at work, we feel it's the right time to finish planning the 1.0 release. We believe that in order to make a successfull release and get closure on the various aspects, it makes most sense to break up the framework into a limited number of subject areas and form project teams around these areas instead of components.    The following is a list of such areas and the components we believe we should focus on for 1.0. As you can see, a large amount of the work has already been done, but we now have to focus on getting closure on them and tying up loose ends.    Some of the components they've listed fall under the categories of:  Web & Web Services MVC & related Authentication & authorization Databases Documentation & translation    There is also a high-level look at what version 0.2 of the framework will contain and a return to the "post often" methodology they had before.
730111
In his latest post, Sebastian Bergmann spotlights another new feature of the upcoming PHPUnit release - distributed testing.   One of the new features in the upcoming PHPUnit 3.1 release is the support for distributed testing through the ability to log test result and code coverage data to a database. This way, the same test suite can be run on different platforms with the results being aggregated in the database. For this to work, however, we need a key in the database that identifies test runs from different machines as being related. A Subversion revision number is a perfect candidate for this.   He includes a sample script that helps with the storage of the results in the database by grabbing a unique id for the machine pushing the updates in.
111268
Jacob Santos has posted a list of things that he both likes and dislikes about one of Zend's beta offerings - Zend Neon.   I've been using Zend Studio Neon for the past three weeks and I have to say, for something that is free (beta software) it is quite good. Compared to using VS 2005, Zend Studio Neon has its advantages, since Visual Studio doesn't handle PHP well. Zend Studio Neon also has areas that I didn't like.   His likes included the fact that it's not Eclipse (technically) and that it supports PHPUnit and PHPDocumentor out of the box. Dislikes included the fact that it might not be free in the future and that it lacks FTP support.
418678
Debugging can be one of the most important tools to a developer (web or otherwise) and one of the more popular PHP IDEs, Zend Studio, makes it relatively simple to do. The Developer Tutorials website has this new tutorial to help you get started on the path to being bug free.   For the majority of experienced PHP developers, Zend Studio is considered the top-of-the-line PHP IDE. [...] In this tutorial, we will explore how to use the latest update of Zend Studio for debugging PHP scripts.   They walk through an overview of the IDE, some of the requirements and the install process and, finally, they finish it off with a few pages talking about how the get the debugging up and running.
701606
Following on the heels of these comments from Alexander Netkachev, the Zend Developer Zone has posted the full project plan for the next release of the PHP IDE Zend is working on, version 0.7.   The plan of the 0.7 version is based on the initial SRS which is available here. On top of that SRS many bugs were submitted together with enhancement requests that were/will be included in the 0.7 release. You can find all PHP IDE open bugs here.   The announcement is broken up into three sections - the release deliverables, the release milestones, and the target operating environments - each with plenty of details to show you exactly what the team is working towards.
2750
On DevShed today, there's the second part in a two part series (another excerpt from the "Zend PHP Certification" from Zend) talking about getting the most out of your application and platform through some simple debugging/optimizing tools.   They start off with a look at debuggers - what they're for and a brief mention (high level) of how to use them. Next up is some simple suggestions for optimizing the performance of your application:  Hardware issues Web server issues Avoid overkill Zip it up Database optimizations  They also include a simple recommendation that all developers, looking for performance boosts or not should follow - "keep your code simple".
451308
Over on the Zend Developer Zone today, Akash Mehta has written up  a review of a book from Packt Publishing, "PHP Web 2.0 Mashups" (by Shu-Wai Chow):    As it's title suggests, PHP Web 2.0 Mashup Projects is a demonstration of the various techniques available for developing mashups in PHP. Through a highly practical format, Shu-Wai takes the reader through a series of projects utilising different web services and APIs, while carefully exposing the reader to a wide variety of technologies and data formats.   With careful selection and shaping of language, the book is an extremely effective introduction to the world of mashup development with PHP.    Akash talks about the contents of the book (the different projects it covers) and how the book provides a version useful resource to those just getting into the mashup world - a reference guide to some of the popular data transfer methods/formats out there.
768564
According to the Zend Developer Zone, the Zend Framework is going to the even more powerful in the future with the inclusion of command line functionality.   So, without further adieu, it is my pleasure to announce that Zend Framework 1.5 will include a robust, powerful, and- yes- 15-minute-demo-enabled command line interface for code generation!   They've set up a default structure (that's "recommended") but doesn't have to be strictly adhered to. They know how most developers have structured their applications and made it accordingly. There's three proposals in the group - the Zend_Console, Zend_Build component and the Zend_Build for Core.
510435
For anyone that's had an issue with getting XDebug to work with the Debian linux distribution, you might want to check out this helpful hint Carsten Lucke has posted about.   This week I started to setup a Debian-based (Etch) web-server with PHP 5.2 in a virtual-machine with VMWare. Part of this setup was getting XDebug2 integrated. It's really awesome and my students definitely need to learn about it. [...] Building went well as usual but when I tried to integrate the extension inside php.ini it was all weird.   His system kept throwing him an error when he tried to load the shared module using the zend_extension directive, hand things happened. Loading it normally worked (so he knew it wasn't the module) and he finally figured out the problem:   But I need to enable it as Zend extension. Whatever. I finally used the full path to xdebug.so to load it [...] that worked.