Testable PHP code