Deprecated: Assigning the return value of new by reference is deprecated in /home/therning/public_html/niklas/wp-settings.php on line 472

Deprecated: Assigning the return value of new by reference is deprecated in /home/therning/public_html/niklas/wp-settings.php on line 487

Deprecated: Assigning the return value of new by reference is deprecated in /home/therning/public_html/niklas/wp-settings.php on line 494

Deprecated: Assigning the return value of new by reference is deprecated in /home/therning/public_html/niklas/wp-settings.php on line 530

Deprecated: Assigning the return value of new by reference is deprecated in /home/therning/public_html/niklas/wp-includes/cache.php on line 103

Deprecated: Assigning the return value of new by reference is deprecated in /home/therning/public_html/niklas/wp-includes/query.php on line 21

Deprecated: Assigning the return value of new by reference is deprecated in /home/therning/public_html/niklas/wp-includes/theme.php on line 623
Niklas blog

Niklas blog

Just another WordPress weblog

Drupal Statistics on Steroids

May 28th, 2005 in Uncategorized

Deprecated: Function split() is deprecated in /home/therning/public_html/niklas/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 466

Deprecated: Function split() is deprecated in /home/therning/public_html/niklas/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 466

Deprecated: Function split() is deprecated in /home/therning/public_html/niklas/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 466

The statistics collected by Drupal’s builtin statistics module is rather limited and there are no facilities to create nice graphs or in other ways manipulate the collected data. On the other hand there are a lot of great and free web tracker services out there which let you gather statistics on your visitors and then query that data in various ways. Today, I integrated one such service, StatCounter, with the Drupal based web site you are looking at right now. Read the rest of this entry »

jMock-solid Testing

May 11th, 2005 in Uncategorized

Deprecated: Function split() is deprecated in /home/therning/public_html/niklas/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 466

Deprecated: Function split() is deprecated in /home/therning/public_html/niklas/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php on line 466

Some time ago I started using jMock to create mock objects in my unit tests at work. If you haven’t heard of mock objects before it’s really quite simple — mock objects are used during unit testing as stand-ins for those objects the class you’re testing interacts with. So when you unit test a class in your application’s service layer which depends on a DAO, instead of using the real DAO you would use at runtime you use a mock object which implements the DAO interface. To the class under test this mock object will look as if it was a real DAO implementation. Read the rest of this entry »