Member Since: January 13, 2011

Country: United States

  • One thing I've been learning recently (and applying for the very first time!) is to test everything. The extreme is to write the test first and code to satisfy it second but I don't always do that. I've been re-writing everything in PHP to be object-oriented just so I can easily test it. I discovered PHPUnit and it's database plugin for testing out my code. I can use that to automatically create a mock database with fixed data for easy testing of my code. I then just regularly run the phpunit command in a script before I commit and as part of a Jenkins job that polls my git repository for code changes when a hook script fires.


  • To clarify, the P means support for picoPower. Searching the datasheet for that term will help clear up a little more what the differences are.