News Feed
Sections
News Archive


Community Events
php|tek 2008 PHP Conference



feed this:

Stoyan Stefanov's Blog:
www vs no-www and cookies
0 comments :: posted Wednesday May 14, 2008 @ 11:18:39
voice your opinion now!

Stoyan Stefanov 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 come up with a test to show you how cookies are set and where you can access them from.

One of the implications of following the rule is related to the whole www vs no-www 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.

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.

tagged with: cookie hostname test board coverage


Debuggable Blog:
Code Coverage Analysis soon in CakePHP - Test How Well You Test
0 comments :: posted Thursday May 01, 2008 @ 11:19:54
voice your opinion now!

In a new post to the Debuggable blog, Tim Koschutzki talks some about the work he's been doing on the code coverage analysis for the upcoming CakePHP release:

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.

He includes a few screenshots of the code coverage being run and the end result of the runner with the percent covered.

tagged with: code coverage cakephp framework test unittest


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

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