Laptop? Testing & Secret Diaries
So due to some circumstances beyond my control, my sister arrived back home in MJ to have no internet, and more importantly no computer for said lack of internet. :S So AJ let me have a laptop to send to her for a bit. Kris had to set it up, and couriered it overnight. To bad they could never get it working. Not network cards recognized (even with the included drivers installed first). I even had them send the windows disc, and re-install. No dice. It was super frustrating, as I can't trouble shoot a windows problem over the phone. Actually I would probably be no good having the computer in front of me either. The entire thing bothers me to no end, and the parties have since given up, and my sister has made other arrangements. My good intentions were fraught with obstacles. I feel bad ... I did what I could.
With the PF project moving along, and another new developer reading and waiting to get going, we kinda of need to get some of the base lego blocks in place. I have the base site setup, and working on the test machine. I did a walk through with the new guy, and he's reading through code, and the project development guide (Oh yeah ... I had to write that too ;)).
With eXtreme programming being the way to go, we kind of need a testing harness before we can go to work. So I spent a night working on a new simple unit testing mechanism. I wrote a Test class, and a TestFactory to handle the multiple test, and test groupings. You can register dependent classes, run your output directly to console (colorized via Console/Color.php), directly to a browser, or to flat HTML / Text files (which I'm not quite done yet ... a few lines of fopen / fwrite and it will be all done. The point to that is night runs of the tests, and archived for us.
Overall I am quite happy with how it all worked out. Sure it could be way better, but I'm not into writing the _best_ PHP unit testing project in history. This makes it simple enough to write a single function performing the test, and placing a few lines of code in the right test file for it to be run. Colorized output in many forms, and historical data. Good enough for me.
Amidst all that coding I discovered my new favorite TV show. "The Secret Diary Of A Call Girl". It is shown on ITV, but I am lucky enough to grab them from tvtorrents. I find it sexy, funny, and brilliant how you get wrapped into both the working girl persona "Belle", and the real person "Hannah". It's a struggle for anyone to separate their work life from their personal one, and it just goes to show how much your work affects your person, no matter how much you try to keep them distinct. It's only 8 episodes apparently, and I'm waiting for the final of 8 to be uploaded. Check it out if you get ITV