Creating a String class to represent and manipulate strings in PHP

In getting started with PHPUnit, I didn’t have any code I felt like writing unit tests for. Mainly because I wanted to start with something very simple. I started writing some code, one thing lead to another and I ended with a simple class to represent a string. It only has a few methods but it was more than enough to provide me with quite a few test cases. The unit test for the class in another post I’m going to do soon. (PHP Unit tests for string class is here)

Read more of this post


Get every new post delivered to your Inbox.

Join 1,385 other followers

%d bloggers like this: