Drupal 6 PHPUnit testing setup

Using PHPUnit or PHPSpec when developing Drupal modules has some obvious benefits; you don’t have to reload you entire website in a browser each time you want to test your module. Continue reading

Zend, Doctrine and PHPUnit a great threesome

I’m a sucker for executing PHPUnit tests using my konsole.

Using rake I have set up a build script that executes my Doctrine migrations and runs my PHPUnit test suite. Continue reading

Drupal unit testing

After having read Pat Shaughnessys comment on my entry about PHPUnit testing i Drupal 6 – and after have a look at his blog and work over at github – I started to think about the whole PHPUnit/TDD/BDD “thing” once again. And then it came to me… Continue reading

Drupal 6 and PHPUnit testing

I know that Drupal officially is using simpletest which is also a great testing framework,  I like PHPUnit though, not for any particula reason, it was the first testing framework I used for PHP and I’ve stuck with it. So I decided to figure out how I could use PHPUnit with Drupal and it’s possible and did not take more than a couple of minutes to setup. Continue reading

Test Driven Development with PHP

Getting started with test driven development can be difficult, it can be hard to grasp the whole consept of writing tests and to many it looks like something that will take time away from what you love: programming. But on the contrary; test driven development forces you to write even more of that lovely code. Continue reading

Follow

Get every new post delivered to your Inbox.