codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Follow publication

Writing PHP Unit test friendly code

Sérgio Serra
codeburst
Published in
4 min readFeb 4, 2017

--

Dependency injection

Each function has one function

Functions should have a minimum number of arguments

Do not access superglobals directly

Final words

--

--

Published in codeburst

Bursts of code to power through your day. Web Development articles, tutorials, and news.

Written by Sérgio Serra

Hotel tech guy, CTO at Guestcentric. Big on innovation, based in sunny Portugal. Always curious, never boring.

Responses (3)

Write a response