News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

Symfony Project:
Book preview read the Unit Tests chapter
January 19, 2007 @ 11:44:00

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 done just that as a part of a larger book on the framework.

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.

To check out this sample chapter from thei upcoming book (the chapter on unit testing), download it here or just grab 0 comments voice your opinion now!
symfony book sample chapter unit test apress framework symfony book sample chapter unit test apress framework



Matthew Weir O'Phinney's Blog:
Getting XDebug working with PHPUnit for code coverage reports
December 28, 2006 @ 15:02:00

After trying to get code coverage reports and unit testing with PHPUnit and XDebug to work, Matthew Weir O'Phinney succeeded and got the reports running. Fortunately, he's shared how he's done it and an example of how to run the report.

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?

He gives an "executive summary" 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.

0 comments voice your opinion now!
phpunit unit test xdebug codecoverage report phpunit unit test xdebug codecoverage report


Sebastian Bergmann's Blog:
AJAX-Based Test Runner for PHPUnit
November 22, 2006 @ 18:02:00

Sebastian Bergmann has posted an official call for help 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.

It would be great if the frontend for the browser-based test runner would make use of AJAX. 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.

He's looking for 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 the mailing list or in #phpunit on the Freenode IRC network.

0 comments voice your opinion now!
phpunit unit test ajax runner xhtml css javascript phpunit unit test ajax runner xhtml css javascript


Sebastian Bergmann's Blog:
PHPUnit 3.0 (Release)
November 20, 2006 @ 09:24:00

PHPUnit fans can finally rejoice that the latest version of their much loved PHP unit testing utility - PHPUnit3 - has finally been released as a stable download.

Sebastian Bergmann and his contributors are proud to announce the immediate availability of PHPUnit 3. This release is a major improvement to the popular open source testing solution for PHP applications. It includes new features and bug fixes. Further details about this release can be found in the ChangeLog.

In his newest blog post, Sebastian 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.

0 comments voice your opinion now!
phpunit unit testing release phpunit3 mock object selenium codecoverage phpunit unit testing release phpunit3 mock object selenium codecoverage


Felix Geisendorfer's Blog:
Release early, Release often, CakeTester
November 17, 2006 @ 10:53:00

Trying to adhere to the philosophy of "release early and release often", Felix Geisendorfer has posted a new item with the latest version of his testing application for the CakePHP framework - CakeTester.

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.

He links to the download and provides some basic install/usage instructions including a code sample (and a screenshot) to get you started.

0 comments voice your opinion now!
caketester unit test cakephp framework release early often caketester unit test cakephp framework release early often


Chris Hartjes' Blog:
Zend_Service_Audioscrobbler Update
November 13, 2006 @ 07:49:00

In his latest blog post, Chris Hartjes gives us an update on one of the packages (components?) for the Zend Framework - the Zend_Service_Audioscrobbler.

He talks about, though his time is a bit more stretched than usual, he's managed to get some real work done on the package. He gives some code examples to show off what this new development is (complete with unit tests - go agile testing!).

That bit of code is what does all the heavy lifting for me. It uses the Zend_Service_Rest component to talk to Audioscrobbler's web services, and returns the results as a SimpleXML object. Nice and simple. A perfect example of what Zend Framework is trying to accomplish.

The second code example is the tests that he's generated to check the package for errors in grabbing the 'Top Artists' and 'Top Tracks' as grabbed by the package via the REST web service.

0 comments voice your opinion now!
zend framework service audioscrobbler update code unit test zend framework service audioscrobbler update code unit test


Sebastian Bergmann's Blog:
PHPUnit 3.0 Beta 3
November 07, 2006 @ 15:56:00

Sebastian Bergmann notes today that he has release this third beta version of the upcoming PHPUnit 3 release, a popular unit testing framework for PHP.

A list of features is available as well as a list of changes. You can install PHPUnit using the PEAR Installer.

PHPUnit 3.0 is the (coming soon) version of PHPUnit - both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.

0 comments voice your opinion now!
phpunit unit testing beta release pear installer phpunit unit testing beta release pear installer


DevShed:
Graphical Interfaces and Unit Testing
November 02, 2006 @ 11:57:00

In the final part of their series looking at unit testing in PHP, DevShed has this new tutorial that looks at using graphical interfaces with the unit tests you've already generated. It's another excerpt from the George Schlossnage book "Advanced PHP Programming".

Because PHP is a Web-oriented language, you might want an HTML-based user interface for running your unit tests. PHPUnit comes bundled with this ability, using PHPUnit_WebUI_TestRunner::run(). This is in fact a nearly identical framework to TextUI; it simply uses its own listener to handle generate HTML-beautified output.

He looks at test driven design, a simple "Flesch Score Calculator" class, testing a "Word" class (with PHPUnit), and creating the Bug Report of the output of it all. Finally, he builds up a simple web interface to make running the tests and getting the reports nice and easy.

0 comments voice your opinion now!
tutorial unit test graphical interface phpunit web tutorial unit test graphical interface phpunit web


DevShed:
Unit Testing in Detail
October 26, 2006 @ 09:58:00

Continuing in their effort to help PHP developers keep their code bug-free, DevShed has posted part two of the series looking at unit testing your applications. Previously they had looked at the basics - of they work and what they're for. This time, they dig a little deeper, showing some of the additional features and conditions that PHPUnit has to offer.

This week, you will learn about running multiple tests simultaneously, creating more informative error messages, and more.

They get back into something they mentioned briefly before - packaging tests in a separate archive to keep it out of the main body of code (the same way separating content and display functionality is good). They also talk about how to run more than one test at the same time, a handy feature that lets you make regression tests.

They also show how to create more informative error messages and how to manually add more testing conditions for you to check custom bits of code that don't quite fit with the assertNull, assertEquals, and assertFalse crowd.

This article is an excerpt from the Sams Publishing book "Advanced PHP Programming" by George Schlossnagle.

0 comments voice your opinion now!
tutorial unit testing additional features test conditions add tutorial unit testing additional features test conditions add


DevShed:
Unit Testing
October 19, 2006 @ 10:12:00

More and more talk is being given to testing applications these days. For some, that just means going through the functionality and ensuring that things seem to be working okay. That's one way to find problems in an application, but not the best way. A better way it through unit testing, a system of writing up various tests for the functions making up your application to ensure they're 100% working. Not familiar with it? That's what this new tutorial from DevShed is for - another excerpt from the Sams Publishing book "Advanced PHP Programming".

All code is tested at some point-perhaps during its implementation, during a dedicated testing phase, or when it goes live. Any developer who has launched broken code live knows that it is easier to test and debug code during development than after it goes into production.

Unit testing helps with finding these problems before they get into the hands of live users. The tutorial gives you a basic overview of how to work with this handy tool, specifically with the PHPUnit package. They help you write a simple test, expand on this base with more elaborate tests, and how to package your tests right in with your libraries to make installation/packaging simpler.

0 comments voice your opinion now!
unit test package introduction tutorial multiple inline unit test package introduction tutorial multiple inline



Community Events









Don't see your event here?
Let us know!


mysql release database code releases application package developer framework PEAR ajax example cakephp book job PHP5 conference zend zendframework security

All content copyright, 2009 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework