Archive for June, 2011

Upgrading to PHPUnit 3.5 on Zend Studio

Here's a quick clip I made to show those who hankering to have an updated PHPUnit plugin for Zend Studio.I hope this video is obsoleted soon so others don't have to endure the annoyance.View in HD! Subscribe in a reader...
Read More

Worthy of distribution: PHPUnit’s dbunit testing rundown

This is by far the most complete and best example of a rundown of database testing using PHPUnit's "dbunit" extension. It seems it's difficult to track down a whole rundown on the more technical aspects of 'getting into it'.The Ultimate Guide to Database-Testing with PHPUnitAuthor: Benjamin Eberlei (kontakt@beberlei.de)http://www.beberlei.de/dbunit.html Subscribe in a...
Read More

Interfaces in PHP are worthless. Blasphemy? yes.

What is the purpose of an interface? One would simply say "they're a contract, etc.", and you'd be right.Long story short, all PHP interfaces do - is enforce:- What methods are implemented- What their signatures look likeHowever there's one HUGE (in my book) fundamental lack: RETURN TYPES.Thus, I will call...
Read More

/usr/bin/chage – Sending emails when a pasword expires, or is about to

There's a lot of scripts out there that do this but they either don't revolve around /etc/shadow enough or they're sloppy.Here's my spin on a script for nightly cron that will parse /etc/shadow and send out emails based on the per-user values. It's resistant to garbage dates (99999 'expiration' dates)....
Read More