Tag Archives: Unit Testing

Recently I was having problems to get my unit tests to connect to my local MySQL server when ran within Zend Studio 8. After some reading on the internet it seems, that this issue is caused by the MySQL server running on the default port (3306). I’ve changed this to 8889 as MAMP (on mac) suggests and now it works like a charm.

Why unit testing? There are quite a few reasons, but those I can think of right now are:

It’s not hard, all it takes is some time to think things through

Whenever I get a bugreport, I try to write it as a test to make sure this bug can never slip into my code unnoticed.

It’s a nice way to make sure that the things you already wrote, keep working after you’ve changed some of your code.

Let’s take a look at the steps you need to do to get this working in Zend Studio (currently I’m using 6.1.2). First you need to add the PHPUNIT library location to the include of the project you want to write unit tests for. Right click your project, then click ‘properties’.

Then click on the ‘include path’ to the left. You will see an overview of the already added ‘include paths’ to this project.

About Prana

Prana is a beautiful theme with simple and clean design. Theme can easily be used as a personal portfolio, simple blog or a complete business website. There is an impressive typography by Google Web Fonts without the need for load-heavy graphics. Some exciting features of Prana are custom menu, custom background, custom flexible header, featured images, widgetized sidebar, threaded comments, improved SEO performance and theme options. Make it yours with a custom menu and a custom flexible header for anything you like to suit your own niche.