Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

Tag Archives: Test Driven Development

PHPUnit Mock Objects: Only Mock What You Need

I was looking at mock objects in PHPUnit the other day and started to get confused. When I asked for a Mock object, the entire object was a mock. In all actuality, it wasn’t so much a Mock of the … Continue reading

Posted in PHP, phpunit, Test Driven Development, testing | Tagged , , , | Leave a comment

Testing protected and private attributes and methods using PHPUnit

First, I just want to say up front that this is not a discussion of “is 100% test coverage necessary” or a discussion about testing private methods. This is simply how you may do it if you wanted to. Testing … Continue reading

Posted in Test Driven Development | Tagged , | 1 Comment

Eclipse Testing with TPTP – help me?

I recently came across this tutorial here about Testing with TPTP- and I’m confused. Whats the benefit of this type of testing (um… creating JAVA code for a JUnit test… right?) compared to running some PHPUnit, Selenium and AB (from … Continue reading

Posted in Eclipse PDT, IDE and Web Dev Tools, programming, Test Driven Development | Tagged , , , | 2 Comments

APD post processing wrapper

A while ago, I discovered the ‘joys’ of APD… and then moreso, the ‘joys’ of not being able to make heads or tails out of the output script. After digging deeper, I saw that the original directory already had some … Continue reading

Posted in Misc Web Design, PHP, scripting, Test Driven Development | Tagged , , | Leave a comment

Friendly reminders about testing your PHP code

I was reading on a forum the other day about some benchmarks for PHP. The guy had posted some results in ms measurements, and was getting upset about his erratic results. There were some things that he was forgetting, however. … Continue reading

Posted in Misc Web Design, PHP | Tagged | Leave a comment

Test Driven Development Book Review

(“the triangle”) just recently purchased a book for the library at my request, Test-Driven Development by example by Kent Beck. The current Amazon price for this book is $35. The book took me about 2 weeks of sporadic reading to … Continue reading

Posted in Test Driven Development | Tagged | Leave a comment