A few days ago I made a post about modifying phpunit_setup.inc to enable test driven development on Drupal 5. Since then a few things have happened.
Drupal TDD
The first big news is that phpunit_setup.inc is now part of a new project called Drupal_TDD. To quote our README file the project is,
“…designed to make Test Driven Development with Drupal easy and enjoyable.”
As part of this change the source code for phpunit_setup.inc has moved to GitHub. This will allow us to collaborate more easily on phpunit_setup.inc in the future, and should make it easier for any readers hoping to give test driven development with Drupal a try.
Check out the project page for news and updates, or to download the latest version of phpunit_setup.inc. You can also visit the Drupal TDD wiki for documentation and examples.
Good-bye Backports, Hello Automated Version Detection
In other news, I’ve also been busy refactoring code to integrate some thoughts and feedback I’ve received. The main changes are:
- Using phpunit_setup.inc in Drupal 5 now works just like using it on Drupal 6. You no longer need to include drupal6_backports.inc in your unit test files. The same steps Pat outlines on his blog to use phpunit_setup.inc in Drupal 6 will now work with Drupal 5. This also means you won’t need to change your tests when migrating between versions.
- When running under Drupal 5 phpunit_setup.inc now creates the same database schema as running a fresh Drupal 5 install. Rather than backporting the Drupal 6 installation process to Drupal 5 which created tables you wouldn’t normally use in a Drupal 5 installation, phpunit_setup.inc now automatically detects the version of Drupal you’re using and runs the appropriate database installation procedure.
There are still more announcements on the way, but that’s all we can reveal right now. Stay tuned for further developments!
Mark Uncategorized Code, development, software, Spotlight, tdd, Technology, testing
UPDATE: Since this post was written phpunit_setup.inc has been moved into the Drupal TDD project. phpunit_setup.inc has also been updated to not require the drupal6_backports.inc file. Read my post on the changes for the details.
Inspired by the work of Pat Shaughnessy in a series of great articles he wrote on Test Driven Development (TDD) using Drupal (1, 2, 3, 4, 5, 6, 7, and 8) I was motivated to take his code and use it on my current Drupal project.
Read more…
Mark Uncategorized Code, Spotlight, Technology
Dark Room is a great little app I’ve been using lately to edit text. It’s full screen, simple and helps me focus on what I’m supposed to be doing!
Mark Uncategorized Spotlight, Technology, Work

Stream all that HD TV all around the house, and play Halo while you’re doing it.
Now I can finally watch my DivX movies in the living room!
More…
Mark Uncategorized Spotlight, Things I Don't Need
Every Christmas the CBC raises donations for the Edmonton food bank. This year their only 25% of the way to their goal from last year with only a few days to go. If you can spare $20 buy a turkey and help out a family this holiday.
Turkey Drive 2007 (click the donate link halfway down the right-side)
Mark Uncategorized Spotlight
I just wanted to get this out there and say how much I’m missing everyone from Gamers.Experimentations.org, or GamEx for short. It’s a forum for gay video gamers, but it’s a great game forum in general, and it’s been down for the last week while they make upgrades to the site. I know these take time but I’m still missing everyone and it will be nice once the site is back up. Thanks to lstr for all his hardwork!
Mark Uncategorized News, Spotlight
Just in time for the end of Stampede… create your own cowboy name with the cowboy name generator. It says my cowboy name is Mark “Cotton Mouth” Bennett but I don’t really like what that implies so I’m thinking of coming up with something more fun on my own. Maybe Mark “Shady Brow” Bennett, or how about something cool like just “The Sheriff”?
Mark Uncategorized Spotlight
This weeks PhotoFriday word is, “Remarkable”, and I definately think this picture qualifies. It was taken while I was in Bangkok, Thailand at one of the “girly boy” shows. It was a musical review where the performers actually sung and danced for almost two hours. I got some great shots, and yes in fact she is really a boy!
Mark Uncategorized Spotlight
Frogger came out last night for the Xbox 360 Arcade. I was over at Lawrence’s when it did, and we ended up playing it for a while well we talked. So far I’m impressed. I’d forgotten how much I used to play the old game on my Commodore 64, but it all came back to me pretty quickly once I got started.
I’m sure some of you are asking why you’d want to play an old arcade game on a smokin’ (and expensive) new game system. Well the honest answer is because it’s fun! Majesco has managed to capture and recreate the old school arcade experience perfectly, though you need to go into the options and switch to the classic graphics for the full experience. The upgraded graphics are nice but the old ones are a lot more fun. You can also stretch the screen to make it fit your television a little better.
As for the Live integration, I was left dissapointed. It seems cool but I haven’t been able to get it working correctly yet so I’m going to reserve judgement. The quick matches keep connecting then telling me the game session is no longer available. On the other hand it you host a game no one ever seems to be able to join. I was able to connect to someone once for a few minutes but their connection was laggy and they cut out after a few minutes. I should mention I’m running my Xbox against an internet connection with <50 ms ping times and good upstream and downstream. I've also heard of this issue effecting other people on my friends list, so I'm hoping a software patch will be able to address this problem.
Anyway, if you’re on Live and looking to play a co-op or verses game then set it up and send me an invite.
Mark Uncategorized Spotlight
I was out for drinks with two of my friends last night and got some cute pictures that I thought I’d share. Aren’t they cute together?
Mark Uncategorized Spotlight