Blog - The Ossigeno Blog - Powered by Ossigeno 3.0_rc1

Blog section
Have you ever tried to test a private or protected method? Every time a test invokes a private method by reflection a fairy dies. Be more responsible.
PHPUnit is a wonderful tool, but this time it was being a bit too smart. Here's a workaround to fix its mocking capabilities.
Why using a factory to produce simple objects? Because new keyword has to be isolated, even if it is only new Form();
It's hard to get work done when you're not in the zone, and distraction comes in. To help productivity, let's enforce good practices instead.
What is a good domain model? The one that bridges together domain and infrastructure...