Technical information on this site may be out of date : no updates since 2015

Testing PHP

May 12, 2009 , posted under php testing unit testing testfest phplondon

I had fun this weekend at the PHP London Test Fest, it was a great opportunity to learn something new and meet some great programmers.

The tests our team took on were based around the SPLiterators I hadn’t used this part of PHP before and it was a great way to learn about it, especially as many of the functions we tested aren’t documented yet.

Read More…

simpletest vs phpunit

May 6, 2009 , posted under php drupal testing

There are two main options for unit testing PHP: simpletest and phpunit

They both do a lot of the same stuff, both have the ability to run suites of tests and create mock objects.

Simpletest has a built in webTestCase which allows you to perform some integration as well as unit testing.

An example web test for simpletest is:

Read More…

Cross Platform Testing with Selenium and VirtualBox

April 27, 2009 , posted under php testing agile virtualbox selenium

As well as following standards such as those laid down by www.w3.org I always try and test websites I develop across a range of browsers. Despite improvements in compatibility in recent years, browsers do still vary in implementation and even relatively minor browsers are still used by large numbers of people.

However all this testing can be hard to keep on top of and sometimes I just have to push out what seems like a small code change with only limited testing.

I’m aiming to automate as much testing as possible, this is a little more work up front - but makes re-running tests trivial and so more likely to happen.

Read More…

Nework Error after VirtualBox Upgrade

April 27, 2009 , posted under testing virtualbox

I decided to upgrade  VirtualBox because the newer versions have much better support for networks that allow virtual computer to be visible on the real network.

But after upgrade I encountered the error

HostInterface’: The attribute ’name’ is required but missing.

It seems others have had similar issues

Read More…

Continuous Integration Testing for Drupal with CruiseControl (part 1)

April 8, 2009 , posted under php drupal testing svn cruisecontrol unit testing agile phpundercontrol

I recently finished work on a project that really suffered from a lack of build tools.

It was a large project, and while many of us were keen on writing tests we weren’t able to get management sign of to spend some time automating the test process. So even though we did some of the work we didn’t get all the benefits.

It was really frustrating to come back to a piece of work that was well covered by unit tests, only to find those tests broken

Read More…

Accessible Rich Internet Applications (WAI-ARIA)

April 4, 2009 , posted under accesibility

I’ve just been reading some good stuff on developing accessible web applications that still benefit from rich interactivity. http://www.w3.org/TR/wai-aria/ http://dev.opera.com/articles/view/introduction-to-wai-aria/ http://www.iheni.com/screen-reader-testing/ http://wiki.codetalks.org/wiki/index.php/Main_Page I’ve been keen on building accessible websites for a long time, and I find everyone benefits from this - well developed accessible sites are just easier for everyone to use. What’s great is that it can be as simple as just clearly defining the navigation areas of the site, or as complex as adding a semantic layer on top of a full application.

Read More…

version control with Git

April 2, 2009 , posted under drupal svn git

I’ve been intrigued by git for a while, but as a long time user of svn I’m kinda cautious about moving on.

So today I had some time and used it to read up on the pros and cons, as well as try things out a bit.

It seems to me that git is clearly the better system; but that svn has the advantage of maturity.

Read More…