Share technical know-how with other users, or help to promote Ubuntu
Share your development expertise and help shape the future of Ubuntu
- This is why you shouldn’t take people’s Facebook lives seriously http://t.co/COCxArZuUY 20:32:00, 2014-07-20
- How much does IKEA *really* overcharge Australians? Here’s the data http://t.co/FCJrBWpkqp http://t.co/axa77kkoI4 16:33:05, 2014-07-20
- It will take 75 years for women to achieve equal pay with men: study http://t.co/023QKZ7xlA http://t.co/wdzUV5umbZ 14:19:02, 2014-07-18
- Tony Abbott says that boat people are “un-Christian” for coming to Australia http://t.co/4LjuQKr1ht #auspol 14:19:04, 2014-07-16
- Special Report: Thomazeau http://t.co/6DQA76ShTt via @wordpressdotcom 18:26:13, 2014-07-12
- 1 in 4 Aust workers expect tech to make them obsolete http://t.co/dfaVsj1COH 20:32:05, 2014-07-11
- ‘Vexatious’ digital activist forces Australian Electoral Commission to release secret computer code http://t.co/spcCmDIX3F #auspol 18:27:06, 2014-07-11
- Lower dollar knocks Sydney off the top 10 most expensive cities http://t.co/FQTnoctCDT 16:33:13, 2014-07-11
- Change Management is dead: Long Live Change Leadership http://t.co/5VeHb8sn9D 14:19:05, 2014-07-11
- Tips for running effective meetings.
- Australian patent for the wheel revoked: I can finally stop dragging my car around http://t.co/60zfI8avOH 21:42:00, 2014-07-10
- It is childcare costs, not paid leave, that is confronting new parents http://t.co/ZVleum8wsN #auspol 20:32:03, 2014-07-10
- Bizarre letter from Goldman Sachs employee offers insights into financial sector http://t.co/WzcL7GmCq8 18:27:00, 2014-07-10
- Australia should not follow the American path to inequality: Nobel Prize winning economist Joseph Stiglitz http://t.co/u7k4EiXy67 #auspol 16:33:01, 2014-07-10
- Solar shift leaves taxpayers with industry’s ‘stranded assets’
- Tony Abbott widely panned in the international press; Australia becoming a pariah state http://t.co/TUOqjvI6Um #auspol 18:27:15, 2014-07-09
- Admit It: You Didn’t Start a Company to Change the World
- 66 nations that make 88% of world emissions passed laws against global warming; Australia is repealing them http://t.co/aGZp4Uv284 #auspol 18:27:01, 2014-07-08
- Wealth of 7 richest Australians exceeds 1.73m households; govt budget to make it worse http://t.co/RqG1SIhYUG #auspol http://t.co/DQX0FwviEu 14:19:01, 2014-07-08
- Australia sending asylum seekers back to the country that’s persecuting them http://t.co/DNR80ijfyX #auspol 18:27:08, 2014-07-07
- Families and elderly are hundreds of dollars worse off under $7 GP co-payment: study http://t.co/4Hg579Tg3A #auspol 14:19:05, 2014-07-07
PHPUnit Essentials by Zdenek Machek is a technical resource book that provides an impressive overview of PHPUnit and unit testing in general. The book starts at the very beginning, explaining the common methods of installing PHPUnit, progressing through into running basic tests, then more advanced techniques, and automated testing.
A lot of technical resource books simply focus on their specific subject and skip over the environment, but not this book. Zdenek takes a lot of effort to not only explain the specifics of PHPUnit, but also to explain how testing benefits proper application design and problem solving with some real examples. Before he digs too deep into showing the different testing functions, he spends some time showing how you'd design code based on how to test it. The result is a well written, and well tested, piece of code.
I approached this book as a PHP developer who has only lightly touched on PHPUnit in recent years. As is often the case when you're working to very strict time limits, unit testing often falls by the wayside, so I set out to remedy this with PHPUnit Essentials. I sat down with one of my projects, and started implementing test cases as I worked through the book. It didn't take long for me to discover a couple of bugs in my code, and I even swapped dependencies to a more suitable solution, all because I'd spent 15 minutes writing a test for what I thought was a working piece of code.
Although most of the earlier chapters conveyed pretty standard PHPUnit functionality, it soon moved into talking about Mocking, backing up globals, data providers, and other interesting things that I've not used much and didn't really understand (or hadn't even heard of). These chapters are the ones I'll be going back to frequently, and I can already think of ways I'm going to implement them within my projects when I'm doing more development.
The only downside of the book is that it seems to talk about some old technology, and I'm assuming Zdenek has refreshed one of his older books on PHPUnit with new content and left these references in by mistake. PEAR, for example, is no longer supported for PHPUnit installations and will be shut down some time this year. The introduction makes mention of this fact, but then the installation steps recommend it without any warnings - as if they are from an older book and the author forgot to update that section when he updated the introduction. It also talks about the Xine Continuous Integration server - which looks like it hasn't been updated in years.
This is definitely a book that I'll be coming back to, and I'm sure there is plenty more for me to learn the next time I spend some time reading through it. It's well worth reading for anyone who does PHP development.
You can find it at Packt Publishing.
- Child sexual abuse royal commission: Vatican declines request to provide all documents relating to Australian priests http://t.co/i2eyfCZEcV 16:33:06, 2014-07-06
- Sexist slur made by Nationals MP John Williams against female cabinet minister Robyn Parker http://t.co/1vWzQTvDCT #auspol 14:19:03, 2014-07-06
- How to get your head swimming with ideas http://t.co/THz6qSLwNb 16:33:03, 2014-07-05
- UNHCR slams transfer at sea as clear rights breach http://t.co/sDODmoZyLW #auspol 14:19:00, 2014-07-05
- Tony Abbott says Australia was ‘unsettled’ before British arrived http://t.co/OjlZxhlSiL #auspol 16:33:03, 2014-07-04
- Startup mythbusting: The seven biggest startup myths http://t.co/chYXM0cl9Q 21:42:02, 2014-07-03
- The dilemma of career specialisation http://t.co/cciKy0MUhO 20:32:05, 2014-07-03
- Africa’s mobile boom powers innovation economy http://t.co/HA4w3yNaNh 14:19:06, 2014-07-03
- 97 percent of the fastest computers in the world are based on Linux http://t.co/BnuXUnZOb1 20:32:14, 2014-07-02
- Woolworths accused of raising prices to plug earnings hole http://t.co/2Sbpib5bqr 16:33:00, 2014-07-02
- Australia’s health report card reveals excellent grades http://t.co/dblwjqbHn1 14:19:00, 2014-07-02
- How I became a millionaire in 1000 days http://t.co/9TCDOBipx3 21:42:12, 2014-07-01
- Baby study: Private vs public hospitals http://t.co/awe4DaSToK 20:32:02, 2014-07-01
- Measles Outbreak Traced Back To A Single Unvaccinated Child http://t.co/UkTwRMDiue 18:27:12, 2014-07-01
- The Invisible Beauty of Wireless Networks — art and science convege http://t.co/E6KXO5tsw6 16:33:07, 2014-07-01
- Sex abuse victim fights church’s ‘Ellis defence’
- What Tesla Gains from Giving Out Its Patents http://t.co/QPAKCdL7wh 20:32:08, 2014-06-30
- A mesmerising chart showing the web of world trade http://t.co/sL4q09umQa http://t.co/zS6hE5wg4J 18:27:03, 2014-06-30
- Govt cover-ups over asylum seekers continue http://t.co/MgOHCsZaMN #auspol 14:19:00, 2014-06-30