Things That Matter Most

Things That Matter Most

  • Home
  • Business
  • Faith
  • Technology
  • Politics
  • Creative Writing
  • Email
  • GitHub
  • RSS
  • Twitter

Powered by Genesis

40 Days in the Desert

June 17, 2014 by Eric

One of the Biblical stories I turn back to time and again is that of Jesus’ testing in the desert.

Filed Under: Faith Tagged With: adversity, testing, trial

To Test or Not To Test: Unit Testing and Privacy

December 1, 2013 by Eric

Determining which methods in your application needed testing used to be easy – test everything exposed by the public API. But once you invite other developers to contribute, you are exposing a whole other set of internal APIs to the team. The behavioral consistency of these methods is just as important as that of the public API, so shouldn’t you be testing them too? I would argue you should, even if this internal API consists of private and protected methods. To make life easier, I’ll give you a couple of tools for testing these limited-visibility functions without forcing everything to be declared “public.”

Filed Under: Technology Tagged With: API, development, method privacy, phpunit, software, testing, Unit Test

About Me

Eric is a storyteller, web developer, and outdoorsman living in the Pacific Northwest. If he's not working with new tech in web development, you can probably find him out running, climbing, or hiking in the woods.

Get the newsletter