News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Debuggable Blog:
Unit Testing in CakePHP Part 1 - Introduction to Unit Testing
0 comments :: posted Wednesday May 07, 2008 @ 10:23:29
voice your opinion now!

On the Debuggable blog, Tim Koschutki has posted the first part of a series looking at unit testing the CakePHP framework. This first article introduces you to the idea of unit testing to help lay the foundation for what's to come.

So you want to read up on Unit Testing in CakePHP? That is great, testing can be such a help in finding bugs. [...] Surprisingly, many people do not know yet what unit testing is. In this first part of a whole series you can get a good grasp of what it is and is not.

He goes over the basic concepts behind the testing - setting up test cases, comparing results, automating them and how they related to code coverage. He gets into more detail with a list of the assert functions (like assertNotEqual or assertClone) and some examples using the simpletest unit testing software. He wraps it up by listing some of the benefits of unit testing, the limitations of it, TDD and what Mock objects are.

tagged with: cakephp framework unittest simpletest introduction


PHP in Action Blog:
Tips for web testing
0 comments :: posted Wednesday February 13, 2008 @ 08:09:46
voice your opinion now!

On the PHP in Action Blog, there's a this post that shares some tips for testing your web applications with some simple tests.

I just started listing the techniques I've learned when writing tests to exercise the web interface of a PHP application. This is from my experience and my personal preferences; it's not the final word or necessarily right for everyone.

He suggests:

  • Use SimpleTest's Web tester if you can
  • Test the web output using regular expressions
  • Use element IDs or names to test links, forms and fields
  • Log HTTP requests in the application
tagged with: web testing unittest simpletest regularexpression http request

Stubbles Blog:
Stubbles 0.5.0 released
0 comments :: posted Friday February 01, 2008 @ 13:37:00
voice your opinion now!

Frank Kleine has announced on the Stubbles blog that the latest version of the framework, Stubbles 0.5.0 has been released.

A last day of a month - time to release a new Stubbles version. The release does not feature that much new features, we focused mainly on infrastructure and code quality improvements. The most important change of course is the change of the package separator.

Instead of the dots they've gone with the more standard double-colon that PHP already uses. There were also code quality improvements and a move away from SimpleTest out to the popular PHPUnit unit testing package.

You can download this new package from the Stubbles project site.

tagged with: stubbles framework release simpletest phpunit package seperator

PHP in Action Blog:
Testing Smarty templates
0 comments :: posted Tuesday January 29, 2008 @ 08:47:00
voice your opinion now!

On the PHP in Action blog today, there's a quick new post that talks about not only using the Smarty templating system but also a method for testing it to check for any kind of possible failure.

As I mentioned in my blog post on Paparrazzi testing, Uncle Bob (Robert C. Martin) has discussed how to test web templates or server pages. Since I'm currently working with Smarty templates, I wanted a simple way to run tests on them without needing to deal with a web server and the page navigation in a full web application.

Thankfully, he's found a nice, simple method for running tests against the Smarty engine (and includes that in the post - an interface to Smarty and the example test case to run against it).

tagged with: smarty unittest simpletest template fail isolation interface


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

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