PHPnews.io

Software development DSL

Written by Cal Evans / Original link on Aug. 20, 2010

Dear Reader, [Author’s Note: Fridays should be fun. If you are a manager, try taking one Friday a month and let your developers do whatever they want. Trust them to do something but don’t give them any parameters at all. See what they dream up.] When I venture out into the real world, the one […]Th…


Using PHPUnit to verify parameter types (revisited)

Written by wimg / Original link on Aug. 15, 2010

(This is an update on a blog post I wrote last year about parameter type checking)PHP is dynamically typedPHP is a dynamically typed language. What this means is that it allows you to do things like :$a = 5;$a = 'test';$a = false;The reason this works, is because PHP enforces type rules during exec…