News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Zend Developer Zone:
Sample Chapter From Pro PHP, Patterns, Frameworks, Testing and More
0 comments :: posted Friday April 11, 2008 @ 15:38:35
voice your opinion now!

The Zend Developer Zone has posted a sample chapter from a new book Packt Publishing has put out called "Pro PHP, Patterns, Frameworks, Testing and more by Kevin McArthur.

So today you get a double bonus. You get to check out Pro PHP, Patterns, Frameworks, Testing and more by Kevin McArthur. You also get a great tutorial on SPL!

The sample chapter looks (obviously) at the SPL, the Standard PHP Library - functions included with PHP5 releases to accomplish some pretty cool things.

tagged with: packt publishing sample chapter patterns frameworks testing


Johannes Schluter's Blog:
PHP 5.3 Up to 30% performance win
0 comments :: posted Wednesday March 26, 2008 @ 10:28:07
voice your opinion now!

As Johannes Schluter mentions, the results of some benchmarking have been posted concerning the performance of PHP 5.3 versus the current 5.2 series:

Dmitry posted results of performance test comparing PHP 5.2 and 5.3 to internals which are impressive numbers.

The improvements were measured based on several popular pieces of software like Drupal, typo3 and WordPress. The overall performance gian was around thirty percent across the board.

tagged with: php5 performance increase testing compare application

Internet Super Hero Blog:
Is PDOFETCH_UNIQUE broken by design?
0 comments :: posted Friday March 07, 2008 @ 10:25:00
voice your opinion now!

On the Internet Super Hero blog, there's a post that looks at how PDO is implemented in PHP and wonders if the PDO::FETCH_UNIQUE constant is broken (as something to fix before even considering the move to PDO2).

I spent quite a lot of time comparing the different behaviours of the various drivers in the hope I could find out how PDO drivers are supposed to work. The PDO documentation and the specification do not cover each and every detail. PDO really needs some love...

He picks out the FETCH_UNIQUE constant as one that needs a little work and tries to track down exactly what it's doing. One issue he found was that it requires combination with other flags to make the unique part of it work correctly (like FETCH_OBJ or FETCH_COLUMN). He works through several examples, both ones that apply the unique call and others that don't, comparing the results.

tagged with: pdo fetchunique unique broken testing results

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

Padraic Brady's Blog:
The PHPSpec Zend Framework App Testing Manifesto ZF Integration
0 comments :: posted Monday January 21, 2008 @ 10:21:00
voice your opinion now!

Continuing on from his preamble on the integration of the PHPSpec BDD tool into the Zend Framework, Padraic Brady has posted the next in the series - a look at what it would take to make the integration happen.

The ideal was to move away from line-by-line setup and manipulation of Zend instances towards a more simplified model which is standardised for any PHPSpec specs.

He's already created an "experimental branch" to work inside of and some of these updates have been made to the trunk for the release of PHPSpec 0.3.0. The key that he found was in getting the customization of the "Zend Context operational to set up elements of the FrontController". He also includes a simple example of the extended functionality in action - simple interface methods to work with Twitter.

tagged with: phpspec bdd zendframework integrate testing example code

Padraic Brady's Blog:
Mutation Testing Brain Dump
0 comments :: posted Friday November 30, 2007 @ 10:26:00
voice your opinion now!

Padraic Brady has made a post about some of the mutation testing thoughts running through his head for the Behaviour-Driven Development framework he's been working on - PHPSpec.

Mutation Testing is like testing, for tests. The idea is actually quite simple. Mutation testing adds small changes to your source code on the assumption that changing something, will most likely break it, which in turn means at least one test/spec should fail. [...] The reason why it's useful it that it gets around the problem of being over reliant on code coverage - just because some code executes when running tests, doesn't prove the tests will detect problems with it!

He wants to create a way that doesn't rely on external dependencies and is looking at working with the tokenizer functions native to PHP. He includes two examples of the way he's thinking - an example of simple token output and a way to go "backwards" to recreate the original source code.

tagged with: mutation testing unittest phpspec tokenizer mutation testing unittest phpspec tokenizer


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

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